in reply to check if it is a file or directory
This approach is slightly different from yours in that it will not filter out other hidden directories, such as .foo.use File::Slurp; my @dirs = grep { -d "$oldFolder/$_" } read_dir($oldFolder); print "$_\n" for @dirs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check if it is a file or directory
by saintex (Scribe) on Feb 26, 2010 at 15:18 UTC | |
by toolic (Bishop) on Feb 26, 2010 at 15:54 UTC | |
by saintex (Scribe) on Feb 26, 2010 at 16:06 UTC |