in reply to Re: file creation
in thread file creation

Or:

use File::Path; mkpath('/dir1/dir2/dir3/');

gav^