in reply to problem in checking if directory exists

perldoc -f mkdir

Replies are listed 'Best First'.
Re^2: problem in checking if directory exists
by denzil_cactus (Sexton) on Mar 31, 2008 at 08:38 UTC
    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.
      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.