my( $n, $m, $o ) = shift;
I used to do this one all the time also. I just got in the habit of not using shift. Instead I'd do:
my ( $n ) = @_;
Works just as well and is nearly impossible to screw up if you need more variables.
In reply to Re: Stupid mistakes I repeatedly make
by friedo
in thread Stupid mistakes I repeatedly make
by brian_d_foy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |