in reply to FILE::PATH question

You want
use File::Path 2.07 qw( make_path remove_tree ); make_path("...");
or
use File::Path qw( mkpath rmtree ); mkpath("...");

The first will provide a better error message if the desired module is not available.

$ perl -e'use File::Path 2.07 qw( make_path remove_tree );' File::Path version 2.07 required--this is only version 2.04 at -e line + 1. BEGIN failed--compilation aborted at -e line 1.

The second is backwards compatible.