in reply to Re^4: make_path for creating directory tree
in thread make_path for creating directory tree

You're trying to create folders in root '/' and dont have proper permission. Try make_path("one/two/three"); or make_path("./one/two/three");

EDIT: Also, you can test if a dir exists before creating it.
next if (-d $dir); #will skip to next dir IF target dir exists make_path("one/two/three");

Replies are listed 'Best First'.
Re^6: make_path for creating directory tree
by fasoli (Beadle) on Dec 23, 2015 at 16:20 UTC

    Ugh I'm an idiot. Yes, I was indeed trying to create a folder in root, I corrected that now. Ok first step - use make_path once successfully: done!

      Make sure to read and digest everyone else's great examples too!