"...it seems to be the easiest way..."
Who knows. Consider File::Find::Rule:
# untested use File::Find::Rule; my @files = File::Find::Rule->file() ->name('*.html') ->grep($pattern) ->in($dir);
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
Furthermore I consider that Donald Trump must be impeached as soon as possible
In reply to Re: File::Find find several strings in one directory
by karlgoethebier
in thread File::Find find several strings in one directory
by Staralfur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |