Subject: | check for absolute path not cross-platform compatible |
Instead of:
if ($path_to_tt2 =~ /^\//) {
Please use:
use File::Spec::Functions;
[...]
if (file_name_is_absolute $path_to_tt2) {
That check will do the right thing across all OSes known to File::Spec.