in reply to Filter File that have certain word
What have you got at the moment (just the half dozen lines that deal with iterating over files)? It may be that all you have to do is:
while (...) { open INFILE, '<', ...; my $buffer = do {local $/; <INFILE>}; next if $buffer =~ /CLEAR/; ... } continue { close INFILE; }
Prints:
|
|---|