[Catalyst] little syntax

Bill Moseley moseley at hank.org
Thu Apr 12 20:11:13 GMT 2007


On Thu, Apr 12, 2007 at 09:43:07AM -0700, Will Smith wrote:
> I have the following piece of code:
>  
>  # in controller
>  ...
>  while ( my $row = $file->read ) {

Template Toolkit also has WHILE so you could just pass in $file

Extensive use of $c->log->_dump or [% USE Dumper %] or other
variations can save a lot of time when dealing with the templates.


-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list