On 7/3/07, Prabu Ayyappan <[EMAIL PROTECTED]> wrote:
You can even do like this

$var1 == 0  && $var2 == 1 ? print "hai" : print "bye";
snip

If you are going for succinctness, then try this

print !$var1 && $var2 ? "hai" : "bye";

But in general, you are better off using the longer forms as they are
more maintainable.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to