Syntactic Confectionery Delight | |
PerlMonks |
?: (conditional operator)by pmc2 (Acolyte) |
on Aug 23, 2001 at 17:27 UTC ( [id://107313]=perlquestion: print w/replies, xml ) | Need Help?? |
pmc2 has asked for the wisdom of the Perl Monks concerning the following question:
Could someone please explain to me why the following snippet prints "Yo helloBye" and not just "Yo hello"?
I thought the above example was equivalent to: which correctly prints "Yo hello". Any thoughts?
Back to
Seekers of Perl Wisdom
|
|