Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to sort in perl on the basis of one field.

by rovf (Priest)
on Jul 29, 2014 at 05:52 UTC ( #1095465=note: print w/replies, xml ) Need Help??


in reply to How to sort in perl on the basis of one field.

How are they joined? I guess you use some separator to join then. In this case, you can use (in your sort function) a regular expression to extract the second field, and sort on it.

-- 
Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1095465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-10-25 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?