I think, some people should be arrested when trying to use map, or even better, prohibited using anything but Java.# drop first two arguments map shift(@ARGV),[0,1];
P.S. (spoiler) It actually drops only one argument as [0,1] is a list of only one element (which is an arrayref) not two, as one could think.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: map() abuse or child with a chainsaw
by demerphq (Chancellor) on May 13, 2002 at 14:15 UTC | |
by kappa (Chaplain) on May 13, 2002 at 14:29 UTC | |
by jeffa (Bishop) on May 13, 2002 at 14:39 UTC | |
by Biker (Priest) on May 13, 2002 at 20:22 UTC | |
by kappa (Chaplain) on May 13, 2002 at 15:13 UTC | |
by demerphq (Chancellor) on May 13, 2002 at 15:55 UTC | |
|
Re: map() abuse or child with a chainsaw
by particle (Vicar) on May 13, 2002 at 14:44 UTC | |
|
Re: map() abuse or child with a chainsaw
by rinceWind (Monsignor) on May 13, 2002 at 14:33 UTC | |
|
Re: map() abuse or child with a chainsaw
by perrin (Chancellor) on May 13, 2002 at 17:08 UTC |