Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 exploiting the Monastery: (5)
As of 2014-07-26 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls