in reply to Re: shift in list context buggy?
in thread shift in list context buggy?
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 ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: shift in list context buggy?
by tobyink (Canon) on Nov 09, 2013 at 14:47 UTC | |
by morgon (Priest) on Nov 09, 2013 at 18:41 UTC | |
by Athanasius (Archbishop) on Nov 10, 2013 at 07:05 UTC | |
by tobyink (Canon) on Nov 10, 2013 at 09:13 UTC | |
by LanX (Saint) on Nov 10, 2013 at 07:16 UTC | |
|
Re^3: shift in list context buggy?
by hdb (Monsignor) on Nov 09, 2013 at 15:12 UTC |