* Christopher Heschong <[EMAIL PROTECTED]> [2007-07-14 01:15]:
> What about:
> 
> my $vote = $bar and $foo;
> 
> Seems to pass the test above and is vaguely readable. Is it
> similarly evil?

I think you mean

    my $vote = $bar && $foo;

That’s not terribly pretty tho. It conceils intent. In particular
it will leaves any false $bar value in $vote, including things
other than undef.

The ternary is really the best option.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to