http://qs321.pair.com?node_id=892994


in reply to How to localize conditionally?

local $ENV{BLAH} = condition ? 42 : $ENV{BLAH};