in reply to Customised error messages

You should check the directory for readability with -r and for executability (ie you are allowed to chdir to it) with -x:

if (-r $dir && -x $dir ){ print "$dir => OK\n"; }

Replies are listed 'Best First'.
Re^2: Customised error messages
by denzil_cactus (Sexton) on Jun 15, 2007 at 05:28 UTC
    thanx for the reply