in reply to Re: File::Find: Return array of "wanted" files (File::Find::Rule)
in thread File::Find: Return array of "wanted" files
AFAIK, the OP wanted to apply the regex to the contents of the files, not the names, so it should be:
my @files = File::Find::Rule->grep( qr/regex/ )->in( @dirs );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File::Find: Return array of "wanted" files (File::Find::Rule)
by Anonymous Monk on Oct 04, 2013 at 08:30 UTC | |
by alpha-lemming (Novice) on Oct 04, 2013 at 09:53 UTC |