P is for Practical | |
PerlMonks |
ternary operatorby pglenski (Beadle) |
on Jul 17, 2006 at 22:10 UTC ( [id://561870]=perlquestion: print w/replies, xml ) | Need Help?? |
pglenski has asked for the wisdom of the Perl Monks concerning the following question:
The trinary operator looks to be very simple yet sometimes it just doesn't work the way I would think. Take this code snippet. It always set it to 'c' no matter what is typed. Any ideas?
2006-07-18 Retitled by Steve_p, as per Monastery guidelines
Back to
Seekers of Perl Wisdom
|
|