in reply to Re^3: reading file names to an array from the directory tree
in thread reading file names to an array from the directory tree
use File::Find::Rule; # find all the subdirectories of a given directory my @subdirs = File::Find::Rule->directory->in( $directory ); # find all the .pm files in @INC my @files = File::Find::Rule->file() ->name( '*.pm' ) ->in( @INC );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: reading file names to an array from the directory tree
by ikegami (Patriarch) on May 23, 2010 at 22:31 UTC | |
by vit (Friar) on May 23, 2010 at 23:31 UTC | |
by ikegami (Patriarch) on May 23, 2010 at 23:55 UTC | |
by vit (Friar) on May 24, 2010 at 00:52 UTC | |
by ikegami (Patriarch) on May 24, 2010 at 02:23 UTC |