Doesn't keeping the elements in @_ basically have the same effect since they are aliases to the values in the use statement?
With this module, perl -e "use Set (my $x = 6,); $$Set::var++; will work but perl -e "use Set (6,); $$Set::var++; will fail because "Modification of a read-only value attempted at -e line 1."package Set; sub import { our $var = \$_[1]; } 1;
In reply to Re^9: use has it's own scope?
by Eily
in thread use has it's own scope?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |