Perl: the Markov chain saw | |
PerlMonks |
Re: How to sort in perl on the basis of one field.by rovf (Priest) |
on Jul 29, 2014 at 05:52 UTC ( [id://1095465]=note: print w/replies, xml ) | Need Help?? |
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>
In Section
Seekers of Perl Wisdom
|
|