P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Addendum:
I almost always use this construct with local except if I want to alias globally. local *var = \$main::var; Otherwise any later use of $My::var in another scope will also be aliased.
Should also be mentioned that typeglob aliasing is the essential underlying mechanism Exporter is using. Though mostly for subs not vars and always globally.
Cheers Rolf
In reply to Re^2: Unusual variable declaration
by LanX
|
|