XP is just a number | |
PerlMonks |
Re^2: Sorting records on a single fieldby kikuchiyo (Hermit) |
on Jan 20, 2010 at 17:39 UTC ( [id://818514]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|