I think it's because I may or may not have subdirectories that I want to make too - I caved and used
[code=perl]
system "mkdir -p $directory" || print $!;
[/code]
which works very nicely.. I'd still be interested in any alternative solutions as this seems a bit clumsy to me.
Cheers
p.s. i'm also struggling to remove the ./$directory that i created above (oops). Command line returns "directory:...
User Profile
Collapse
-
-
Hi, I'm actually having the same problem..
when I run:
Code:print "making directory "; print $directory; print "\n"; mkdir($directory,0777) || print $!;
I've tried this:
Code:print "making directory "; print $directory; print "\n"; $directory="\"".$directory."\"";
Leave a comment:
No activity results to display
Show More
Leave a comment: