Help for this page

Select Code to Download


  1. or download this
    $parameter_hash->{$this}{$value}{sort_by} = \&custom_sort;
    ... later, in some other subroutine ...
    ...
    foreach (sort $sort_routine keys %{ $parameter_hash->{$this}{$value}{v
    +alue_list} }) {
      #do stuff
    }
    
  2. or download this
    foreach (sort $sort_routine->(\%href) keys %{ $somehashref }) {
      #do stff
    }
    
  3. or download this
    sort &{ $sort_routine }(\%href);
    sort &{ $sort_routine(\%href) };