in reply to Re: Re: Sorting my hashref by value for printing a popup_menu using CGI
in thread Sorting my hashref by value for printing a popup_menu using CGI

The perl built-in function keys will retrieve a list of hash keys, and the built-in function values will retrieve a list of hash values.
sort keys %$namesref # change keys to values to generate sorted list of values sort values %$namesref
  • Comment on Re: Re: Re: Sorting my hashref by value for printing a popup_menu using CGI
  • Download Code