Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://818514]
help
Chatterbox?
[choroba]: BTW, both the bands I play in performed on Friday (at the same event). Quite an exhausting experience.
[Corion]: choroba: Ooof! I can imagine that ;)
[Corion]: I think at a Perl workshop some years ago I gave two talks on the same day and after that decided to only submit one talk per event ;)
[LanX]: you play the triangle, right?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-03-27 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.