Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Not understanding 2 sentences in perldocby Anonymous Monk |
on Jul 29, 2020 at 20:52 UTC ( [id://11120018]=note: print w/replies, xml ) | Need Help?? |
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'.
In Section
Seekers of Perl Wisdom
|
|