in reply to Re: Modulus by zero?
in thread Modulus by zero?
Also interesting is how the variable doesn't need to be declared, since it is automatically considered a package variable.
>perl -Mstrict -e "@1 >perl -Mstrict -e "my @1 an't use global @1 in "my" at -e line 1, near "my @1" Execution of -e aborted due to compilation errors.
Update: Ah, other special-like variables are like that too.
>perl -Mstrict -e "%! >perl -Mstrict -e "my %! Can't use global %! in "my" at -e line 1, near "my %!" Execution of -e aborted due to compilation errors.
|
---|