chiburashka has asked for the wisdom of the Perl Monks concerning the following question:
one way i thought about is opening the file and going line by line and checking if $text is there( by using =~). but it takes some time when the file get's big (like 3 or 4 Megabites).
So how can i make it faster ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search a text in a file
by tinita (Parson) on Aug 03, 2004 at 13:08 UTC | |
|
Re: Search a text in a file
by sweetblood (Prior) on Aug 03, 2004 at 13:11 UTC | |
| |
|
Re: Search a text in a file
by davidj (Priest) on Aug 03, 2004 at 19:00 UTC | |
|
Re: Search a text in a file
by Aristotle (Chancellor) on Aug 03, 2004 at 14:25 UTC |