Hi, I'm actually having the same problem..
when I run:
-
print "making directory ";
-
print $directory;
-
print "\n";
-
-
mkdir($directory,0777) || print $!;
-
I get the output 'No such file or directory'.
I've tried this:
-
print "making directory ";
-
print $directory;
-
print "\n";
-
$directory="\"".$directory."\"";
-
print $directory;
-
print "\n";
-
mkdir($directory,0777) || print $!;
-
Error = No such file or directory
and this:
-
mkdir("$directory",0777) || print $!;
-
which creates the directory ./$directory ...
As you can see I've been checking that the variable prints out correctly. (Output for the first snippet of code is: "making directory ./testdir/testdir2/")
Any help would be really appreciated..