No such thing as a small change | |
PerlMonks |
Re: Logic for importing and strict vars?by LanX (Saint) |
on Feb 27, 2019 at 13:19 UTC ( [id://1230615]=note: print w/replies, xml ) | Need Help?? |
I'm still sleepy and have no documentation... Here my guess: Strict doesn't complain about exported vars, they are "declared" implicitly.* Your last line is not an export but only a simple aliasing, since $x and $a belong to the same package. *) Most probably the same mechanism use vars is employing.
UpdateThe fact that $a is a special variable makes it even more complicated...
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|