Don't ask to ask, just ask | |
PerlMonks |
Re: array assignment with list operator , no parenthesisby FunkyMonk (Chancellor) |
on May 14, 2007 at 11:16 UTC ( [id://615273]=note: print w/replies, xml ) | Need Help?? |
It's because the precedence of comma is less than that of equals. ie, the statement is parsed as ( my @one = 7 ), 2, 3; See Operator Precedence and Associativity for the gory details
In Section
Seekers of Perl Wisdom
|
|