Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Newbie: query about array assignmentby LanX (Saint) |
on Sep 13, 2012 at 13:40 UTC ( [id://993493]=note: print w/replies, xml ) | Need Help?? |
"=" has a higher precedence than ",", thats why you need the parens.
UPDATE: the following example shows that you (almost) never really need parens for lists, it's just precendence:
Cheers Rolf PS: don't be confused "dp" is my personal debugger-macro for using B::Deparse (with -p option to show parens)
In Section
Seekers of Perl Wisdom
|
|