go ahead... be a heretic | |
PerlMonks |
Re: ternary operatorby GrandFather (Saint) |
on Jul 17, 2006 at 22:36 UTC ( [id://561877]=note: print w/replies, xml ) | Need Help?? |
There may be a Perl bug here. Because of operator precedence I'd have expected that the trinary experession shouldn't compile. The assignment operator has lower percedence than the trinary operator. However the immediate answer to your problem is to fix the precedence issue. Here are two fixes:
DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|