in reply to Re^3: looking for speed!! large file search and extract
in thread looking for speed!! large file search and extract
A couple minor points (and maybe I'm a bit too new to PM to make the comments):
This will set $match to true if the current line matches xyzdf at the end, false otherwise. The next time through the loop, we only check your second-line regexp if $match is already true (that is, the previous line matched the other regexp).my $match; while (<FH>) { print C $_ if $match and /^abcde.*PARTNAME$/; $match = /xyzdf$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: looking for speed!! large file search and extract
by Roy Johnson (Monsignor) on Jan 12, 2005 at 17:18 UTC |