Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: array assignment with list operator , no parenthesis

by FunkyMonk (Chancellor)
on May 14, 2007 at 11:16 UTC ( [id://615273]=note: print w/replies, xml ) Need Help??


in reply to array assignment with list operator , no parenthesis

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://615273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found