in reply to Re: problem in checking if directory exists
in thread problem in checking if directory exists

Thanks for the reply Anonymous monk

Well you didnt follow my question here.I am asking about the unless code

unless(-d $dir) { }
mkdir comand I know.

Replies are listed 'Best First'.
Re^3: problem in checking if directory exists
by cdarke (Prior) on Mar 31, 2008 at 12:13 UTC
    mkdir comand I know.

    That's the point, you are not calling the Perl mkdir command, you are spawning a child process to run an external program called mkdir. The error is comming from the external program, not from perl.