use Cwd qw(getcwd chdir realpath); use File::Spec::Functions; # canonpath