Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 about the Monastery: (14)
As of 2014-09-30 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (375 votes), past polls