#!/usr/bin/perl use strict; use HTML::Template; my $tmpl_obj = HTML::Template->new( filename => 'test.tmpl', case_sensitive => 1, ); $tmpl_obj->param( OUTER_LOOP => [ { MENU_NAME => "GONZO", INNER_LOOP => [ { SUBSCRIPT_ACTION => "javascript://", SUBSCRIPT_NAME => "test1", }, { SUBSCRIPT_ACTION => "javascript://", SUBSCRIPT_NAME => "test2", }, { SUBSCRIPT_ACTION => "javascript://", SUBSCRIPT_NAME => "test3", }, ], }, ], ); print $tmpl_obj->output(); ####