There are enough times when one just wants to get rid of the first element in an array, via:
It would be a nuisance to have to create a spitoon-like variable just to catch the shift'ed element (thereby preserving $_). And it would be easy to forget to do this, leading to many chomped butts.shift @array;
the lowliest monk
In reply to Re: shift doesn't DWIM
by tlm
in thread shift doesn't DWIM
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |