|
|
| No such thing as a small change | |
| PerlMonks |
Re: How to sort output?by BrowserUk (Pope) |
| on Jul 22, 2007 at 07:14 UTC ( #628093=note: print w/ replies, xml ) | Need Help?? |
|
This (untested) code should do the trick. It uses a regex to extract the numbers and a GRT (see A brief tutorial on Perl's native sorting facilities.) to make the sort reasonably efficient.
The regex will need tweaking if the latency can produce numbers in other units. Eg. whole seconds or microseconds instead of milliseconds. You might need something like:
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||