Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to localize conditionally?

by Corion (Pope)
on Mar 13, 2011 at 20:00 UTC ( #892988=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local $ENV{BLAH} = 42
        if $DO_MAGIC;
    libcall();
    
  2. or download this
    goto LIBCALL
        if (! $DO_MAGIC);
    local $ENV{BLAH} = 42;
    LIBCALL:
    libcall();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-07-02 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?