Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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
http://perldoc.perl.org/DB_File.html#A-Simple-Example
-> 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'.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://886965]
help
Chatterbox?
[choroba]: Shouldn't you replace it with your app's name?
[james28909]: i figured it out
[james28909]: upon trying various solutions, i was forgetting to package up the script into an executable
[marto]: that'll do it
[james28909]: im glad im not in charge of anything important, like filling up peanut butter jars

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-07-28 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (430 votes). Check out past polls.