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

splice lied! It's almost sort-of nearly true, but not completely true :)

Replies are listed 'Best First'.
Re^4: shift on empty array in list context broken
by Anonymous Monk on Jul 13, 2019 at 21:48 UTC

    splice didnt lie

    The array is manipulated exactly like shift would manipulate it.

    The return value is exactly as documented for splice/shift.

    The equivalences chart is part but not the whole documentation.

      The statement is still false even if it's surrounded by true ones.

        The statement is still false even if it's surrounded by true ones.

        Except that its not false even a little

        equivalence n 1: a state of being essentially equal or equivalent;

Re^4: shift on empty array in list context broken
by LanX (Saint) on Jul 13, 2019 at 21:36 UTC
    > splice lied!

    I prefer orthogonal design :/

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