Help for this page

Select Code to Download


  1. or download this
    $sort_line_contents->{element_one}->{element_two}
    
  2. or download this
    $sort_line_contents->{1}->{2} = Item1;
    $sort_line_contents->{0}->{3} = Item2;
    $sort_line_contents->{1}->{4} = Item3;
    $sort_line_contents->{1}->{5} = Item4;
    $sort_line_contents->{2}->{6} = Item5;
    
  3. or download this
    my @hash_keys2  =   sort { %{$sort_line_contents}->{$b} <=> %{$sort_li
    +ne_contents}->{$a} } keys %{$sort_line_contents};
    
  4. or download this
    foreach (reverse sort keys %{$sort_line_contents}) { push(@hash_keys2,
    +$_);}
    
  5. or download this
    foreach my $hk (@hash_keys2){
    
    ...
        #output to other part of program
         }
       }