[...] but sorted by the hash values [...]
You'd want to slip a sort into your code like ...
my @restaurantvalues = sort { $restaurant{$a} <=> $restaurant{$b} } keys %restaurant;
See the Perl FAQ How do I sort a hash (optionally by value instead of key)? for further enlightenment. :)
--k.
In reply to Re: Re: Re: CGI.pm - scrolling_list and %labels hash
by Kanji
in thread CGI.pm - scrolling_list and %labels hash
by naChoZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |