Ned Konz wrote, on Wednesday, May 10, 2000 11:32
: Andrew Bastien wrote:
:
: > In the spirit of TIMTOWDI, you can also do:
: >
: > sort {$thehash{$a} <=> $thehash{$b}} keys %thehash
:
: That sorts the keys by the values. He wanted to sort the values
: by the keys.
Isn't the best ;) way with a hash slice?
@thehash{sort keys %thehash}
Joe
==============================================================
Joseph P. Discenza, Sr. Programmer/Analyst
mailto:[EMAIL PROTECTED]
Carleton Inc. http://www.carletoninc.com
219.243.6040 ext. 300 fax: 219.243.6060
Providing Financial Solutions and Compliance for over 30 Years
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]