http://www.perlmonks.org?node_id=363358


in reply to Template Stuff

The param method returns the names of the fields in the template (if called without parameters):
$oracle_row=$sth->fetchrow_hashref; foreach ($template->param) { param($_=>$oracle_row{$_}); } return $template->output;