in reply to Re: How to localize conditionally?
in thread How to localize conditionally?
The library checks for existence, so that doesn't work. You'd need
local %ENV = condition ? (%ENV, BLAH=>42) : %ENV;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to localize conditionally? (tias)
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