Mike Friedman wrote:
On 10/31/06, *Ash Berlin* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
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
Yeah - thats what i meant to type - typo on my part there :)
_______________________________________________
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]/