Re^3: Search array of file names in directory structureby Kenosis (Priest)
|on Oct 02, 2012 at 16:05 UTC||Need Help??|
Here's the line, explained a bit:
As shown, this results in the following:
This line builds a regex using the file names in @filelist. When passed to File::Find::Rule as the -name rule, only those files names which match the regex will be returned by File::Find::Rule, if any.
If you want File::Find::Rule to look for a particular pattern, change the regex here:
However, if you want to process the files returned by File::Find::Rule, you can do something like this:
where "pattern" represents the regex that would 'filter' the elements of @found_html.