local $::@numList = @_; # This line is giving Compiler error..
Aside from any consideration of package versus lexical variables, that statement is trying to local-ize a package scalar-array variable named numList (both $ (scalar) and @ (array) sigils are present), but Perl does not know what a scalar-array variable is, nor do I.
A scalar in the main package might be written as $main::numList or with the shorthand $::numList version, or an array might be written @main::numList or @::numList similarly.
In reply to Re^7: Use of "my" after Perl v5.14
by AnomalousMonk
in thread Use of "my" after Perl v5.14
by Rohit Jain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |