in reply to directory exists
What is your expected behavior? It seems to work for me, though I would make the condition:
to explicitly test that the file is a directory.... if (-e $mydir && -d _){ ...
|
---|
In Section
Seekers of Perl Wisdom