Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    sub select_your_school {
        my $namesref = shift;
    ...
                               -values =>  \@menuitems ,
                              }),
              ....
    
  2. or download this
    sub select_your_school {
        my $namesref = shift;
    ...
                  -values =>  [ sort keys %$namesref ],
                              }),
              .....
    
  3. or download this
    # Sort by alpha
    sort keys %$namesref
    ...
    sort { $a <=> $b } keys %$namesref
    
    # etc...
    

Log In?
Username:
Password:

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

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

    No recent polls found