Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Scanning a text file

by Steve_p (Priest)
on Apr 09, 2004 at 16:13 UTC ( [id://343933]=note: print w/replies, xml ) Need Help??


in reply to Scanning a text file

This is a problem that is screaming to be solved by a simple search engine. Check out Plucene and Plucene::Simple. There is also a nice tutorial on it at Perl.com. Yes, the article talks about a web-based search engine, but putting it into a script should be just as easy.

In your situation, you'll need an initial parse on the file to create the indexes, but after that the lookups should be quick. It will also return the full record or records related to your search.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found