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

But where is a description of file() method? I did not find it. And what is the role of:
my @files = File::Find::Rule ->file()

Replies are listed 'Best First'.
Re^7: reading file names to an array from the directory tree
by ikegami (Patriarch) on May 23, 2010 at 23:55 UTC

    In the big table at the top.

    To only returns the results that pass a -f test.

      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?
        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