in reply to Re^6: shift on empty array in list context broken
in thread shift on empty array in list context broken
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: shift on empty array in list context broken
by LanX (Saint) on Jul 19, 2019 at 22:03 UTC | |
by Anonymous Monk on Jul 23, 2019 at 16:16 UTC | |
by ikegami (Patriarch) on Jul 26, 2019 at 03:33 UTC |