Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl: Sorting on Multiple Fields

Status
Not open for further replies.

lagerplease

Technical User
Dec 15, 2001
38
GB
I have a delimited data file which I need to sort on more than one field. I am fairly au fait with Perl but just can't figure out how to do this. Is there a modification to the standard 'sort' function which can be used or do I have to write my own segment of code to do this?
 
You'll have to write your own sort subrtn to do it, but it's not terribly difficult. There's several threads in the perl forum about how to do it. Check there. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Thanks for the replys. I'm now sorted (no pun intended!).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top