I have '|' seperated fields in the file and I like to sort on columns 1,2,4,6,9. How do I do this? I am looking for some better methods like
sort_on_fields(1,2,4,6,9)
rather than
sort { $a[1] <=> $b[1] or .. }
Update: Just after finished writing the post, I found the wonderful 'File::Sort' module. That should do it.
Thanks.