For example, Template: %% foreach my $row (@rows) { %% foreach my $cell (@$row) { %% } %% }
<% $cell %>
CGI: print "\n"; foreach my $row (@rows) { print "\t\t\n"; foreach my $cell (@$row) { print "\t\t\t"; } print "\t\t\n"; } print "
$cell
\n"; #### <& /path/to/other/template.tpl { 'arg1' => \'val1', 'arg2' => \'val2' } &> or <& /path/to/other/template.tpl &>