Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: What operator should perl5porters use for safe dereferencing?

by thomas895 (Hermit)
on May 29, 2012 at 19:56 UTC ( #973107=note: print w/ replies, xml ) Need Help??


in reply to Re^4: What operator should perl5porters use for safe dereferencing?
in thread What operator should perl5porters use for safe dereferencing?

Safe can -- if (ab)used correctly -- prevent your program from dieing as well.

~Thomas~
I believe that the source code to life is written in Perl :-)


Comment on Re^5: What operator should perl5porters use for safe dereferencing?
Download Code
Re^6: What operator should perl5porters use for safe dereferencing?
by ikegami (Pope) on Jun 04, 2012 at 17:18 UTC

    Safe can prevent die from being called, but not dying in general, or even due to "bad" derefs.

    If you wanted to change the behaviour of `->`, especially in a lexical scope, you could use an opcode checker. The autovivification pragma is an example of such.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-09-16 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (47 votes), past polls