We don't bite newbies here... much | |
PerlMonks |
Re: Multiple assignment in Perlby bart (Canon) |
on Jul 24, 2018 at 06:13 UTC ( [id://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
|
|