It's better to use readdir() as mentioned above since it does not depend on the actual name (DOS has something with *.* and unix will not match directories without a dot). The advantage of this version is simplicity (and perlicity :)for (<*.*>) { print $_ if -d; }
In reply to Re: Directory Listing
by fundflow
in thread Directory Listing
by elusion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |