[Catalyst] little syntax
Will Smith
willbelair at yahoo.com
Thu Apr 12 17:43:07 GMT 2007
I have the following piece of code:
# in controller
...
while ( my $row = $file->read ) {
push @record, {
id => $row->{id},
name => $row->{name},
};
}
$c->stash->{recs} = @records;
.....
What is the syntax on the tt2 to access the id and name?
Or please point me to somewhere that I could do some reading on the question.
Thank you
---------------------------------
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070412/c1bb0dab/attachment.htm
More information about the Catalyst
mailing list