shift could easily return an empty list and $x is still undef.
DB<178> $x=() => undef
It's list context, no reason to act differently to splice.
Cheers Rolf
( addicted to the Perl Programming Language)
¹) tl;dr ?
In reply to Re^2: shift in list context buggy?
by LanX
in thread shift in list context buggy?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |