http://www.perlmonks.org?node_id=665790


in reply to Creating new folders

A couple things: Here's how I'd do it:
use File::Path 'mkpath'; use constant DIR => 'e:/web/public_html/eagle_f91...'; unless (-d DIR) { mkpath(DIR) or die "Could not mkpath: $!\n" }