in reply to Failed to create work\\startup directory

Use mkdir

for (qw(work work\startup)) { mkdir or -e or die "mkdir $_: $!"; }

Replies are listed 'Best First'.
Re^2: Failed to create work\\startup directory
by Anonymous Monk on Apr 24, 2011 at 23:51 UTC

    Getting the following error

    Not enough arguments for mkdir at perl.pl line 27, near "mkdir or" Execution of perl.pl aborted due to compilation errors.

      Do you have the for loop like I have it?

      If so, what's the exact error that you get?