in reply to Re^3: Not understanding 2 sentences in perldoc
in thread Not understanding 2 sentences in perldoc
haukex posted "The assignment my ($x, $y, $z) = qw( 1 2 3 ) happens first, i.e. those three variables are assigned the numbers 1 to 3, and this first assignment returns the lvalues, to which the values qw( a b c ) are immediately assigned."
"and this first assignment returns the lvalues" What lvalues does it return? I see (my ($x, $y, $z) = qw( 1 2 3 )) = qw( a b c ); as # 1 = 'a', 2 = 'b', 3 = 'c'.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Not understanding 2 sentences in perldoc
by LanX (Saint) on Jul 29, 2020 at 21:26 UTC | |
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 LanX (Saint) on Jul 30, 2020 at 10:25 UTC | |
Re^5: Not understanding 2 sentences in perldoc
by haukex (Archbishop) on Jul 29, 2020 at 20:54 UTC | |
Re^2: Not understanding 2 sentences in perldoc
by perlfan (Vicar) on Jul 29, 2020 at 21:02 UTC |
In Section
Seekers of Perl Wisdom