in reply to Check if a directory exists?

Please review the basic documentation that accompanies Perl. Notably, the perlfunc document explains what the _X function does. One of its forms tests to see if something is a directory, which should be what you need.

I also highly recommend the introductory book Learning Perl.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.