Help for this page

Select Code to Download


  1. or download this
    foreach $key_1 (keys %hash_1) {
       foreach $key_2 (keys %hash_2) {
    ...
    $vars = {
       my_hash= > \%my_hash
    }
    
  2. or download this
    [% FOREACH key_1 IN my_hash.keys.sort.reverse %]
       [% FOREACH key_2 IN my_hash.$key_1.keys.sort.reverse %]
          output something
       [%END%]
    [%END%]
    
  3. or download this
    [% FOREACH key_1 IN my_hash.keys.sort %]
       [% FOREACH key_2 IN my_hash.$key_1.keys.sort %]
          output something
       [%END%]
    [%END%]
    
  4. or download this
    [% IF sort_order == 1 %]
       [% FOREACH key_1 IN my_hash.keys.sort %]
    ...
          [%END%]
       [%END%]
    [%END%]
    
  5. or download this
    [% FOREACH key_1 IN my_hash.keys.variable_sort_order %]
       [% FOREACH key_2 IN my_hash.$key_1.keys.variable_sort_order %]
          output something
       [%END%]
    [%END%]