in reply to Shift Question
Removing from the ends is most efficient:
splice(@dn, 0, 3, ()); pop(@dn);
But unless you have a huge array, you might want the more readable:
@dn = @dn[3..$#dn-1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Shift Question
by Bloodnok (Vicar) on Feb 16, 2009 at 11:16 UTC | |
by scott_apc (Initiate) on Feb 16, 2009 at 12:44 UTC |