in reply to Re^3: Using arrays as elements in hash
in thread Using arrays as elements in hash
foreach my $Temp (@IsNew){ my %param_2 = ( 'Flag'=>$Temp, #<-- TEST ); foreach my $product (@Products) { my %param = ( 'Code'=>$product, } push(@loop_data_1, \%param); } $loop_data_3{$counter} = @loop_data_1; $param_2{'ProductList'} = \$loop_data_3{$counter}; push(@loop_data_2, \%param_2); @loop_data_1 = (); } $tmpl->param('NumOfProductLists'=>\@loop_data_2);
@loop_data_1 contains the data for the inner loop
@loop_data_2 countain the data for the superior loop (inside it should be arbitray number of different @loop_data_1 arrays).
Basically i want to dinamicly add drop down boxes with different \<selected\> elements. That's why I think I need a different @loop_data_1 for each @loop_data_2.
This is where I thought of using or an array of arrays or a hash of arrays...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using arrays as elements in hash
by Gangabass (Vicar) on Nov 01, 2007 at 03:22 UTC | |
by XMas (Initiate) on Nov 01, 2007 at 04:54 UTC |