[Catalyst] TT2 + CP::Authentication + DBIC gotcha

Perrin Harkins perrin at elem.com
Fri Jul 13 16:02:00 GMT 2007


On 7/13/07, apv <apv at sedition.com> wrote:
> [% vote = Catalyst.user.votes({word => w.id}) IF Catalyst.user_exists %]

Just FYI, you should never do this type of construct in perl.  It will
break in bizarre ways.  I doubt that's the issue with TT, but don't
get in the habit.

my $vote = $foo if ($bar);  # <--- bad!

- Perrin



More information about the Catalyst mailing list