Re: template loop question

2006-04-19 Thread Mr. Shawn H. Corey
On Wed, 2006-19-04 at 11:30 +0100, Graeme McLaren wrote: > Hi, I'm working with template loops today and I was thinking I would write a > function to pass an array of hashes to the template loop a bit like: > > $template->param(pos_colours =>colours()); > > > sub colours{ > > my @colours =( >

template loop question

2006-04-19 Thread Graeme McLaren
Hi, I'm working with template loops today and I was thinking I would write a function to pass an array of hashes to the template loop a bit like: $template->param(pos_colours =>colours()); sub colours{ my @colours =( { id => '',is_selected =>