#!d:/perl/bin/perl.exe $dir =shift || '.'; opendir Dir, $dir or die "dir not found \$! \n"; @files = readdir(Dir); while(<@files>) { print "$_ \n" if -d _; }
Edited by Chady -- code tags.
In reply to Re: List and identify directories
by Anonymous Monk
in thread List and identify directories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |