Perrin Harkins wrote:
On 7/13/07, apv <[EMAIL PROTECTED]> 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!
What's wrong with that? I find it a lot more readable than
my $vote;
if ($bar) {
$vote = $foo;
}
Matt
_______________________________________________
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/