in reply to Re: Re: map() abuse or child with a chainsaw
in thread map() abuse or child with a chainsaw
... but i don't like copying the ARGV array back to itself. More readable might be:@ARGV = @ARGV[2..$#ARGV]; # or for the paran paranoid: @ARGV = (@ARGV)[(2..$#ARGV)];
Out of curiosity, why would one even want to discard the first two arguments like that anyway? Seems like a bad idea in the first place.my $discard1 = shift; my $discard2 = shift;
Hmmmm ... sounds like time to pull out one of the Getopt modules to me. ;)
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 3Re: map() abuse or child with a chainsaw
by Biker (Priest) on May 13, 2002 at 20:22 UTC | |
|
Re: 3Re: map() abuse or child with a chainsaw
by kappa (Chaplain) on May 13, 2002 at 15:13 UTC |