in reply to Re^9: shift on empty array in list context broken (show context)
in thread shift on empty array in list context broken
hello LanX
Apparantley I am trying to show how little I understand contexts, module building and the debugger. :laugh
I think what I am trying to get at is in principle what the OP is about. A reason for equivalent built-ins providing alternate implementations.
Framing the issue of assignment in differing contexts by different built-ins within a wider context, so to speak.
Amalgamating my existing Perl knowledge along with recently learnt knowledge, to do so. With varying results in the offspring.
As an example, if this is an issue with shift, does pop return a different result?
Also I am looking at how the comma operator is affecting the return list. I am not clear on which built-in is returning undef or empty in list context
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: shift on empty array in list context broken (show context)
by LanX (Saint) on Jul 21, 2019 at 17:56 UTC | |
by Don Coyote (Hermit) on Jul 22, 2019 at 22:23 UTC |