![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Searching text filesby hgolden (Pilgrim) |
on Sep 14, 2006 at 18:14 UTC ( [id://572964]=note: print w/replies, xml ) | Need Help?? |
A database would be better. If you wanted to stick with text files, you could create subfiles that contained all the numbers with a given exchange (i.e. the first three numbers after the area code). You can then only open the file that matches that area-code and exchange, and you'll do much less searching.
In Section
Seekers of Perl Wisdom
|
|