Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: can I get a translationby kennethk (Abbot) |
on Apr 23, 2009 at 15:26 UTC ( [id://759558]=note: print w/replies, xml ) | Need Help?? |
You can easily modify your regex to match only entries that do not start a period (\^[^\.]\) to remove the current and parent directories from the list, but that is redundant with performing the file test -f, which returns false on folders. Do you want to collect folders as well as files as you traverse your tree, or are you only interested in checking file names in known directories? Removing the regular expression from you posted code will achieve the latter.
In Section
Seekers of Perl Wisdom
|
|