In the 4th line, (@$_) should read (@$array_ref).my @loop_data = (); foreach my $array_ref(@data) { my @inner_loop = (); foreach my $element (@$_) { push(@inner_loop,{var1=>$element}); } push(@loop_data,{loop2=>\@inner_loop}); }
In reply to Re: Re: HTML table with HTML::Template and loop in a loop
by fireartist
in thread HTML table with HTML::Template and loop in a loop
by fireartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |