Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to sort output?

by BrowserUk (Patriarch)
on Jul 22, 2007 at 07:14 UTC ( [id://628093]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## some.host.name [ip: 111.222.333.444] is alive  70.05 ms)
    ## Updated: switched 'N' for 'd'; real data.
    ...
       my( $time ) = m[([\d.]+) ms)$];
       pack 'd A*', $time, $_;
    } @data;
    
  2. or download this
    my( $time, $units ) = m[([\d.]+) (ms|us|secs)];
    my $scaler = $units eq 'us' ? 0.1 : $units eq 'secs' ? 1000 : 1;
    $time *= $scaler;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-19 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found