« Help save the Internet | Main | Save the Internet (continued) »
April 26, 2006
Note to self...
When getting objects from a has_many member of a Class::DBI object in a Template Toolkit template, remember that the objects are returned in list context, not scalar. You get an array, not an iterator, so you have to use a foreach loop and not a while loop.
Posted by ed at April 26, 2006 9:17 AM