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

Re: search a large text file

by pajout (Curate)
on Feb 08, 2011 at 13:43 UTC ( #886965=note: print w/ replies, xml ) Need Help??

in reply to search a large text file

You can preprocess it using, for instance, DB_File module. See DB_HASH chapter of
-> you can have huge hash which is stored in the file but it behaves relatively transparently in Perl code, like as normal hash.

Or you can use one table in some SQL database, having just two columns, 'key' and 'val', with index on 'key'.

Comment on Re: search a large text file

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-11-27 03:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (714 votes), past polls