Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: ?: (conditional operator)by Masem (Monsignor) |
on Aug 23, 2001 at 17:46 UTC ( [id://107321]=note: print w/replies, xml ) | Need Help?? |
Based on perlop , the terany operator (?:) is just one precidence level above the "operate and set" operators .=, +=, etc.
Thus, perl is seeing: as and not as The solution is, therefore, to use the last form to get it the way you want.
-----------------------------------------------------
In Section
Seekers of Perl Wisdom
|
|