#!/usr/bin/perl $path="."; opendir (DIR, $path) or die "could not open directory"; @files = readdir(DIR); foreach (@files) { print "$_ \n" if (-d $_) ; }
In reply to Problems with -filetest on readdir results by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |