in reply to Re^6: shift on empty array in list context broken
in thread shift on empty array in list context broken
DB<35> sub context { local $\="\n";print wantarray ? "list" : define +d wantarray ? "scalar" : "void";() } DB<36> x [ ($a= context), (context) ] scalar list 0 ARRAY(0x3466930) 0 undef DB<37>
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^8: shift on empty array in list context broken (show context)
by Don Coyote (Hermit) on Jul 18, 2019 at 14:22 UTC | |
|
Re^8: shift on empty array in list context broken (show context)
by Don Coyote (Hermit) on Jul 20, 2019 at 16:43 UTC | |
by LanX (Saint) on Jul 20, 2019 at 19:31 UTC | |
by Don Coyote (Hermit) on Jul 21, 2019 at 09:48 UTC | |
by LanX (Saint) on Jul 21, 2019 at 17:56 UTC | |
by Don Coyote (Hermit) on Jul 22, 2019 at 22:23 UTC |