my $a=$x=$y=$z = foo()Here my attribute does not propogate like in case of comma. It applies only to $a, right ?
But now the fun starts
DB<3> use v5.10
DB<4> my $a=$x=$y=$z = 1
DB<5> say "|$a|$x|$y|$z|"
||1|1|1|
DB<6> unless( defined($a) ){ say "a is undefined"}
a is undefined
why $a remains uninitialized? In reply to Re^2: What's happening in this expression? (Updated)
by likbez
in thread What's happening in this expression?
by zapdos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |