in reply to FILE::PATH question

You might want to try

use File::Path qw(mkpath rmtree);

At least that are the names exported by Path.pm on my system...