in reply to Getting deep with mkdir

Be aware that File::Path::mkpath throws an exception (aka dies) on error, so for normal use you would want to wrap it in an eval and check $@ to see if it succeeded.