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

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.
  • Comment on Re^3: problem in checking if directory exists