Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Problems with -d filetest on readdir resultsby cjf (Parson) |
on May 23, 2002 at 19:07 UTC ( [id://168880]=note: print w/replies, xml ) | Need Help?? |
You need to provide -d with the $path ...
Update: Changed $path to "$path/$_" so it prints out only the directories (as opposed to all the files). Thanks to ChemBoy for spotting this and providing the fix.
In Section
Seekers of Perl Wisdom
|
|