Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Sorting my hashref by value for printing a popup_menu using CGI

by Roger (Parson)
on Jan 14, 2004 at 00:45 UTC ( [id://321153]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://321153]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-18 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found