my $hashref = {
'rows' => "$i $x",
'offset' => "offset $offset",
'i' => "$i",
'x' => $x,
'INTERFACE' => \@r,
};
push(@total, $hashref);
####
|
##
##
my @headers = ("1","2", "three", "4", "blank", "blank", "blank", "desc-1", "desc-2", "desc-3", "desc-4", "desc-5");
for (@headers) {
my $href = { 'HEADER' => $_ };
push(@h, $href);
};
##
##
my $hashref = {
'rows' => "$i $x",
'offset' => "offset",
'name' => "some data $i",
'x' => $x,
'INTERFACE' => \@r,
};
push(@total, $hashref);
##
##
my $template = HTML::Template->new(
filename => 'testing.tmpl',
die_on_bad_params => 0,
associate => $query,
);
##
##
$template->param(HEADER => \@h );
##
##