Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: (nrd) Sorting an array

by powerhouse (Friar)
on Feb 15, 2003 at 00:38 UTC ( [id://235467]=note: print w/replies, xml ) Need Help??


in reply to Re: (nrd) Sorting an array
in thread Sorting an array

Thank you. However, it is still putting it like this:

value = 1 label = Jan
..10 ..Oct
..11 ..Nov
..12 ..Dec
..2 ..Feb
..3 ..Mar
...Etc.

Here is what I put:

popup_menu(-name=>"month_array", -values=>[sort {$a cmp $b} keys %month_array], -labels=>\%month_array, -default=>$mon, -class=>"formfield")

Did I do it wrong?
OOPS. I see, I did not add the 0 in front of the others :o)

thx,
Richard

Replies are listed 'Best First'.
Re: Re: Re: (nrd) Sorting an array
by newrisedesigns (Curate) on Feb 15, 2003 at 01:09 UTC

    No problem. Glad to help!

    If you absolutely can't have the leading zero, do what the good monk pfaut did below.

    John J Reiser
    newrisedesigns.com

Log In?
Username:
Password:

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

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

    No recent polls found