On Tue, Jul 03, 2007 at 01:31:59AM -0400, Chas Owens wrote: > 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.
And, in this case, more accurate. Unless you know something the rest of us don't. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/