On Fri, 2009-07-10 at 20:37 +0100, Steve wrote:
> Hi list memebers. I'm new here and I'm interested in learning about
> Perl. I've managed to get some programs together but have a lot to
> learn.
> 
> May I put a question to the experts?
> 
> Suppose I have a text file that has a whopping amount of lines
> (20-50,000). What would be the best way to condense or index this with
> Perl so I could query it and get a yes/no on it as fast as possible with
> minimum overhead? I could maintain a database to do it, but for one line
> entries this would probably be overkill. It's easy to swap a text file
> to update it and manage the list concerned.
> 
> What would be the best approach?
> 
> Warm regards
> Steve
> 
> 

Put it in a database that has search-index building capacity.  Don't
re-invent the wheel.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to