in reply to Logic for importing and strict vars?
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.
The fact that $a is a special variable makes it even more complicated...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Logic for importing and strict vars?
by Eily (Monsignor) on Feb 27, 2019 at 13:25 UTC | |
by LanX (Saint) on Feb 27, 2019 at 14:14 UTC | |
by Laurent_R (Canon) on Feb 27, 2019 at 14:57 UTC | |
by LanX (Saint) on Feb 27, 2019 at 15:55 UTC | |
Re^2: Logic for importing and strict vars?
by haukex (Archbishop) on Feb 28, 2019 at 08:57 UTC | |
by Veltro (Hermit) on Feb 28, 2019 at 10:09 UTC | |
by haukex (Archbishop) on Feb 28, 2019 at 22:24 UTC |