laziness, impatience, and hubris | |
PerlMonks |
Re: shift on empty array in list context brokenby tybalt89 (Monsignor) |
on Jul 13, 2019 at 21:05 UTC ( [id://11102801]=note: print w/replies, xml ) | Need Help?? |
It doesn't look like shift has a list context, at least according to perldoc. That makes some sense, since it can only return one thing,
unlike splice, which can return zero to many.
for your last example.
In Section
Seekers of Perl Wisdom
|
|