- 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
}
- or download this
foreach (sort $sort_routine->(\%href) keys %{ $somehashref }) {
#do stff
}
- or download this
sort &{ $sort_routine }(\%href);
sort &{ $sort_routine(\%href) };