vit has asked for the wisdom of the Perl Monks concerning the following question:

I'd like something which will do the same work as
opendir (DIR, $dir) or die "cannot open dir $!\n"; my @files = readdir(DIR); close DIR;
but for all files in a dir and all subdirs. I would avoid opening UNIX shells.

Replies are listed 'Best First'.
Re: reading file names to an array from the directory tree
by ikegami (Patriarch) on May 22, 2010 at 23:11 UTC
      I also want to have paths to this file starting from an indicated directory so that I can use open file command.
        Obviously. The answer doesn't change.
        No need to answer, I got it. File::Find::Rule works perfectly ! Thanks !