in reply to using pop a lot
A directly executable example:splice @array,-5,5,();
$ perl -e '@a=(1,2,3,4,5);splice @a,-2,2,();print "@a\n"' 1 2 3
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using pop a lot
by Abigail-II (Bishop) on Oct 10, 2003 at 12:29 UTC | |
by liz (Monsignor) on Oct 10, 2003 at 12:57 UTC |