Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Sorting records on a single field

by kikuchiyo (Monk)
on Jan 20, 2010 at 17:39 UTC ( #818514=note: print w/ replies, xml ) Need Help??


in reply to Re: Sorting records on a single field
in thread Sorting records on a single field

If the number of interest is always at the end of the lines then a simple /(\d+)$/ would do.
A combination of rindex and substr instead of the regex would probably be even faster.

See also this reference work for more pointers.


Comment on Re^2: Sorting records on a single field
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (21)
As of 2015-07-31 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls