Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: File::Find find several strings in one directory

by karlgoethebier (Abbot)
on May 10, 2017 at 17:58 UTC ( #1190002=note: print w/replies, xml ) Need Help??


in reply to File::Find find several strings in one directory

"...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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2022-08-17 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?