![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Multiple assignment in Perlby bart (Canon) |
on Jul 24, 2018 at 06:13 UTC ( #1219156=note: print w/replies, xml ) | Need Help?? |
In Perl, the "," operator has a lower precedence than "=". Therefore, your version means
which does, practically speaking, nothing. You have to add parens to enforce the proper precedence.
In Section
Seekers of Perl Wisdom
|
|