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

Re^2: What's wrong with this local() ? (*)

by tye (Cardinal)
on Jan 30, 2008 at 08:14 UTC ( #665082=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Save a reference to the original variable:
    *nothingToSeeHere::var= \$var;
    ...
    *var= \undef; # (but see footnote)
    # Restore the previous instance (and thus the previous value):
    ON_SCOPE_EXIT { *var= \$nothingToSeeHere::var; }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-10-31 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (215 votes), past polls