[Catalyst] Re: TT2 + CP::Authentication + DBIC gotcha
pagaltzis at gmx.de
Tue Jul 17 17:31:01 GMT 2007
* Christopher Heschong <chris at wiw.org> [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.
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst