Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Are global variables "bad"?by JavaFan (Canon) |
on Apr 21, 2009 at 21:02 UTC ( [id://759116]=note: print w/replies, xml ) | Need Help?? |
local() essentially replaces the current variable (package variable - or aggregate element) with another variable, until the runtime exits the scope the local() is in.
If no magic is involved, it may be easier to think of it as temporary replacing the value.
In Section
Seekers of Perl Wisdom
|
|