Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: perl ST sort performance issue for large file? (copying)

by tye (Sage)
on Mar 30, 2012 at 16:45 UTC ( [id://962649]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $data[ $i++ ] = pack "NNA*", m[(\d+)\D+(\d+)], $_ while <>;
    
  2. or download this
    for(  $data[$i++]  ) {
        read STDIN, $_, $reclen, $keylen;
        substr( $_, 0, $keylen, pack "NN", m[(\d+)\D+)(\d+)] );
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-16 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found