in reply to Re^2: shift on empty array in list context broken
in thread shift on empty array in list context broken
On the other hand, try
my @x = (); my $x = splice @x, 0, 1;
What splice says is true in scalar context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: shift on empty array in list context broken
by LanX (Saint) on Jul 13, 2019 at 22:21 UTC | |
by dsheroh (Monsignor) on Jul 14, 2019 at 08:14 UTC |