in reply to Re^2: how to define html::template for the following hash in perl/cgi
in thread how to define html::template for the following hash in perl/cgi
$tmpl->param( blah => [ values %add ] );
That has the disadvantage of ending up with an unknown order of values, and my assumption (based on the hash key names) was that the OP wanted an ordered list. One could certainly do this, though:
$tmpl->param( blah => [ map { $add{$_} } sort keys %add ] )
|
|---|