And shift(@a) is equivalent to splice(@a,0,1) —they can have evaluate to completely different values— making the statement false.
Returning a single undefined scalar is different than returning none at all.
In reply to Re^7: shift on empty array in list context broken
by ikegami
in thread shift on empty array in list context broken
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |