[Dbix-class] Using DBIx::Class with HTML::Template - anyone doing
it?
Ash Berlin
ash at cpan.org
Tue Oct 31 20:18:55 GMT 2006
Mike Friedman wrote:
> On 10/31/06, *Ash Berlin* <ash at cpan.org <mailto:ash at cpan.org>> wrote:
>
> Not sure if thats a transposition error,
>
> but dont you want:
>
> if ( \@stories ) {
> $tmpl->param( stories => \@stories );
> print $tmpl->output;
> }
>
>
> Actually he probably wants if ( @stories ) { ... }
>
> A reference to an empty array will still be true. (Because you're
> testing the reference for truth, not the array.)
>
>
> Mike
>
Yeah - thats what i meant to type - typo on my part there :)
More information about the Dbix-class
mailing list