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

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

  • Comment on Re^5: shift on empty array in list context broken

Replies are listed 'Best First'.
Re^6: shift on empty array in list context broken
by Anonymous Monk on Jul 17, 2019 at 00:43 UTC

    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;

      And shift(@a) is equivalent to splice(@a,0,1) —they can have evaluate to completely different values— making the statement false.

      Returning a single undefined scalar is different than returning none at all.

        Better stop feeding, this person is just repeating unfunded claims.

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