Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by tye (Sage)
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 having an uproarious good time at the Monastery: (7)
As of 2016-08-31 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.