The short answer is "Yes". Shift returns what it shifts, not a success. Think about it this way - it can only really return one thing.
To do this, you have to push it to a temp then do a trinary checking on defined-ness.
In reply to Re: shift, undef and 'or die'
by dragonchild
in thread shift, undef and 'or die'
by agoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |