Re: Conditional question On Tue, Jul 03, 2007 at 01:31:59AM -0400, Chas Owens wrote:

> On 7/3/07, Prabu Ayyappan  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 - paul@pjcj.net
http://www.pjcj.net

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


