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];
In reply to Re: Shift Question
by ikegami
in thread Shift Question
by scott_apc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |