in reply to How to localize conditionally?
local $ENV{BLAH} = condition ? 42 : $ENV{BLAH};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to localize conditionally?
by ikegami (Patriarch) on Mar 14, 2011 at 14:28 UTC | |
by tye (Sage) on Mar 14, 2011 at 15:44 UTC | |
by ikegami (Patriarch) on Mar 14, 2011 at 16:07 UTC | |
by tye (Sage) on Mar 14, 2011 at 16:18 UTC |
In Section
Seekers of Perl Wisdom