in reply to Get File list from the path
If so, the following will work under Windows and Unix systems:
To include only files, modify as follows:use File::Find; my @list; find(sub { push(@list, $File::Find::name) }, "/your/path"); # @list contains all file objects at and under /your/path
find(sub { -f $_ && push(@list, $File::Find::name); 1 }, "/your/path") +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get File list from the path
by mandarin (Hermit) on Apr 24, 2008 at 08:02 UTC |