P is for Practical | |
PerlMonks |
Re: Is there something that can turn a coderef undef from inside the coderef?by BrowserUk (Patriarch) |
on Jun 10, 2011 at 23:51 UTC ( [id://909230]=note: print w/replies, xml ) | Need Help?? |
Like this maybe?
Basically $_ becomes an alias to the stored coderef. If the code called assigns to $_ without localising it, the coderef will be overwritten. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|