in reply to The Comma Operator
It has less precedence than =, so:$x = (1 + 3, 5 + 7); # $x gets 12 $y = (pop @r, 1000); # @r gets pop()ed, $y gets 1000
means$a, $b = 1, 2;
In any other context, it just separates two expressions.$a, ($b = 1), 2;
foo(), bar(), blat() if bonk(); @a = (1,1,2,3,5,8,13);
_____________________________________________________
Jeff japhy Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|