in reply to Problems with -filetest on readdir results

When using file test operators like -d you need to give it the full path to the file. You might try for instance
print "$_\n" if ( -d "$path/$_" );

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org