in reply to reusable hash value sort
my $current_href = {}; sub byValue { $current_href->{$a} cmp $current_href->{$a}; } # ... somewhere in your program $current_href = \%myHash;
Just assign hash ref to current hash in consideration
Courage, the Cowardly Dog.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: reusable hash value sort
by jdavidboyd (Friar) on Jul 13, 2002 at 13:31 UTC | |
by Courage (Parson) on Jul 14, 2002 at 15:46 UTC |