my @add=( { name=>"Submode", value=>[ 'Ford Prefect', 'Slartibartfast' ], } ); i pass this array of to template by my %data = ( add => \@add ); my $template = Template->new({ }); $template->process(temp.tmpl, \%data) || die $template->error(); #### [% FOREACH element = add %] [%END%]