Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: What's happening in this expression? (Updated)

by haukex (Archbishop)
on Oct 12, 2020 at 08:45 UTC ( [id://11122735]=note: print w/replies, xml ) Need Help??


in reply to Re^2: What's happening in this expression? (Updated)
in thread What's happening in this expression?

What about my $a=$x=$y=$z = foo()
$ perl -MO=Deparse,-p -e 'my $a=$x=$y=$z = foo()' (my $a = ($x = ($y = ($z = foo()))));

The comma is left associative and the assignment is right associative. See perlop.

Here my attribute does not propogate like in case of comma.

No, it doesn't "propagate" with the comma either, as I showed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-28 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found