in reply to Re^10: shift on empty array in list context broken (show context)
in thread shift on empty array in list context broken

> Apparantley I am trying to show how little I understand contexts,

In that case you might be interested in playing with B::Deparse .

The -p option will highlight precedence, which is crucial for context

$ perl -MO=Deparse,-p $a, $b = 666 ($a, ($b = 666)); - syntax OK $

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^12: shift on empty array in list context broken (show context)
by Don Coyote (Hermit) on Jul 22, 2019 at 22:23 UTC

    Yours is a good suggestion. A jaunt into the B Modules would likely be nearly as clear as a Cloven's' Christmas Do.

    As for my proposal of equality between shift and splice, where the true equivalence is almost, but not quite entirely, unresolved; perhaps a subscript into the slice would be in order.