Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Sorting records on a single field

by kikuchiyo (Pilgrim)
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.

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 radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-06-24 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?