[JaxPM] advanced sorting
Nate
nate at netimages.com
Wed Jan 26 23:16:17 CST 2000
On the jacksonville-pm-list; Jax.PM'er Nate <nate at netimages.com> wrote -
I need to sort a report I made (using perl of course) on some ftp logs,
and I want to sort the results by domain name.
I'm not quite sure how to do this, but here's one idea I had.
The names are keys in a hash, so could I do something like
@rev = reverse keys(%domainfiles);
@sorted = reverse(sort(@rev));
and now @sorted is sorted by domain name?
----------------------------------------------------------------------
nate at netimages.com Nate Campi nate at campin.net
Tel: 408.919.1300 Net Images, Inc. Fax: 408.919.1307
www.netimages.com Unix System Administration www.campin.net/~nate
----------------------------------------------------------------------
Jax.PM Moderator's Note:
This message was posted to the Jacksonville Perl Monger's Group listserv.
The group manager can be reached at -- owner-jacksonville-pm-list at pm.org
to whom send all praises, complaints, or comments...
More information about the Jacksonville-pm
mailing list