biggin777 has asked for the wisdom of the Perl Monks concerning the following question:
opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!"; while ($file = readdir(<DIR>)) { if ($file =~ /Somthing/){ open(FILE, $file); #Now I need it to match 3 things that #will be on different lines in the file. #The words PASS,sweeps,Final.Also #these files are big(100mb), so its not a good #idea to suck them into an array and grep, #unless it's my last choice. close(FILE); } close(DIR); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Matching Question
by BrowserUk (Patriarch) on Sep 10, 2003 at 07:01 UTC | |
|
Re: Perl Matching Question
by shenme (Priest) on Sep 10, 2003 at 06:53 UTC | |
|
Re: Perl Matching Question
by gjb (Vicar) on Sep 10, 2003 at 08:29 UTC | |
by graff (Chancellor) on Sep 11, 2003 at 06:19 UTC | |
by Anonymous Monk on Sep 11, 2003 at 06:46 UTC | |
|
Re: Perl Matching Question
by Roger (Parson) on Sep 10, 2003 at 06:34 UTC | |
|
Re: Perl Matching Question
by nite_man (Deacon) on Sep 10, 2003 at 06:47 UTC |