Re: [PBML] Searching files
- You *could* use perls grep command ...
... You have to open each file; you'd always have to do that - but there's
no need to read each line if all you want is confirmation that the file
contains the phrase.
On 5/3/05 9:35 AM, Donato Azevedo at donatoaz@... wrote:
> On 5/2/05, b2174ml <b2174ml@...> wrote:
>> How can I search the contents of all the files in a directory for a
>> specific phrase and write all of the filenames to an array which have
>> that phrase? I'm sort of looking for something like unix's grep
>> command, but in PERL. I don't want to have to open each file and read
>> each line within.