good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Localizing Magic Variable? Should I?by ikegami (Patriarch) |
on Nov 17, 2009 at 22:43 UTC ( [id://807827]=note: print w/replies, xml ) | Need Help?? |
First of all, localizing *them* wouldn't be equivalent. They'd still exist in the hash (with undef for value) rather than not existing at all. Mind you, you can work around that:
Or in 5.12+:
That said, do you have a reason to restore %ENV? If not, why would you localize it.
In Section
Seekers of Perl Wisdom
|
|