in reply to Re^4: Not understanding 2 sentences in perldoc
in thread Not understanding 2 sentences in perldoc
we have two nested list assignments here
effect $x=1, $y=2, $z=3
returns lvalues $x, $y, $z in list context
effect $x="a", $y="b", $z ="c"
doesn't return because in void context (start statement)
Hints
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Not understanding 2 sentences in perldoc
by zapdos (Sexton) on Jul 29, 2020 at 22:01 UTC | |
by LanX (Saint) on Jul 29, 2020 at 22:16 UTC | |
by zapdos (Sexton) on Jul 29, 2020 at 22:30 UTC | |
by AnomalousMonk (Archbishop) on Jul 30, 2020 at 01:16 UTC | |
by zapdos (Sexton) on Jul 30, 2020 at 02:40 UTC | |
by LanX (Saint) on Jul 30, 2020 at 10:25 UTC |