in reply to Mkdir failing

The "idiotic" part you are talking about is not the code quality of a beginner, because that would be petty. It is you not listening to the advice you get.

In 941236 and 941241 and 941250 and 941277 people were already telling you to print the variable $! to see the error message. Do this.

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