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;
In reply to Re: check if it is a file or directory
by toolic
in thread check if it is a file or directory
by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |