http://qs1969.pair.com?node_id=651452


in reply to HTML::Template create table

you need to set up the parameters for the template.
$template->param(ROWS=>$arrayReference);
The array reference is a list of hashes, so if you were to type this out logicaly it would look something like this

$arrayref->[0]->{day}=Monday $arrayref->[0]->{type}=snow $arrayref->[1]->{day}=Tuesday $arrayref->[1]->{day}=rain $arrayref->[2]->{day}=Wednesday ... etc
Be sure to look at HTML::Template for some good examples and documentation.

As well take a look at perldsc for a tutorial on how to make arrays of hashes.