Sorting in PERL

by "Bill Pierson" <wpierson(at)tampabay.rr.com>

 Date:  Fri, 1 Sep 2000 09:30:04 -0400
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Greetings all,
I've had some difficulty figuring out this whole PERL sorting thing. I'd
like to be able to sort by parts of an array, if possible.

For example:
$line[0] = "Arthur,Johnson,53";
$line[1] = "Bob,Franklin,12";

If I wanted to sort by the first field, First Name, is it possible?
If I wanted to sort by the third field, Age, how would I do that?


Any information would be appreciated.
Thanks,
--Bill

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA