Not sure if thats a transposition error,
but dont you want:
if ( [EMAIL PROTECTED] ) {
$tmpl->param( stories => [EMAIL PROTECTED] );
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
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
