in reply to Stupid mistakes I repeatedly make
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Stupid mistakes I repeatedly make
by dragonchild (Archbishop) on Mar 28, 2005 at 13:47 UTC | |
by Roy Johnson (Monsignor) on Mar 28, 2005 at 16:19 UTC | |
by DrWhy (Chaplain) on Mar 28, 2005 at 14:38 UTC | |
by merlyn (Sage) on Mar 28, 2005 at 17:52 UTC | |
by Anonymous Monk on Mar 28, 2005 at 19:51 UTC | |
by Anonymous Monk on Mar 29, 2005 at 12:03 UTC | |
| |
by Mutant (Priest) on Mar 29, 2005 at 11:19 UTC | |
Re^2: Stupid mistakes I repeatedly make
by Anonymous Monk on Mar 28, 2005 at 20:51 UTC |
In Section
Meditations