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.
In reply to Re^2: Logic for importing and strict vars?
by haukex
in thread Logic for importing and strict vars?
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |