All it's printing is the . and .. Any suggestions?opendir(IMD, $dirtoget) || die("Cannot open directory"); @thefiles = readdir(IMD); closedir(IMD); foreach $f (@thefiles) { if (-d $f) { print "$f<br>\n"; } }
In reply to Problem pulling directories out of an array. by bkiahg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |