Robert
2009-09-11 15:06:13 UTC
I am using XML::Simple to get some "simple" XML data.
$template->param( DATA => sub {
for my $list ( @{ $data->{list} } ) {
print "<p>$list->{name}[0]</p><p>$list->{description}[0]</p>";
}
}
);
That prints the data to the template at the top...it doesn't go into the
DATA var. Do I need to do the for loop outside of the $template-param?
Bob
$template->param( DATA => sub {
for my $list ( @{ $data->{list} } ) {
print "<p>$list->{name}[0]</p><p>$list->{description}[0]</p>";
}
}
);
That prints the data to the template at the top...it doesn't go into the
DATA var. Do I need to do the for loop outside of the $template-param?
Bob