in reply to Re^7: reading file names to an array from the directory tree
in thread reading file names to an array from the directory tree

Am I right that it may filter out "." and ".." files?
However, when I did
my @files = File::Find::Rule ->name( '*' ) ->in( @subdirs );
there was no "." and ".." files. So how they were filtered out?

Replies are listed 'Best First'.
Re^9: reading file names to an array from the directory tree
by ikegami (Patriarch) on May 24, 2010 at 02:23 UTC
    It makes no sense to include "." and ".." — they would be redundant or outside the selected branch — so they are never included except "." if it was the provided path.
    >perl -MFile::Find::Rule -E"say for File::Find::Rule->in('.')" . a b bar bar/bar foo foo/foo >perl -MFile::Find::Rule -E"say for File::Find::Rule->file->in('.')" a b bar/bar foo/foo