in reply to Re^3: shift on empty array in list context broken
in thread shift on empty array in list context broken

what do you mean?

DB<17> ($x= splice @x, 0, 1 ) and print "true" DB<18> p !! splice @x, 0, 1 DB<19>

it's false for me.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^5: shift on empty array in list context broken
by dsheroh (Monsignor) on Jul 14, 2019 at 08:14 UTC
    I believe that, by "What splice says is true in scalar context.", Tybalt meant "in scalar context, the documentation for splice holds true", not "in scalar context, splice returns a truthy value".