in reply to Re: Logic for importing and strict vars?
in thread Logic for importing and strict vars?
The fact that $a is a special variable makes it even more complicated...
I just used it because I wouldn't have to declare it, but it's actually not significant to my example, sorry for the added confusion:
$ perl -wMstrict -e 'BEGIN { package blah; *::x=\$::y } $x++' Name "main::y" used only once: possible typo at -e line 1. $ perl -wMstrict -e 'BEGIN { *::x=\$::y } $x++' Variable "$x" is not imported at -e line 1. Global symbol "$x" requires explicit package name (did you forget to d +eclare "my $x"?) at -e line 1. Execution of -e aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Logic for importing and strict vars?
by Veltro (Hermit) on Feb 28, 2019 at 10:09 UTC | |
by haukex (Archbishop) on Feb 28, 2019 at 22:24 UTC |