I don't think you want or need the quotes around the file variables. These modules work, they must be being applied to files other than the ones you intend. What is the output if you add the following immediately before you use the ctime function?
printf "File 1:%s File 2: %s\n", $xxfn1, $xxfn2;
In reply to Re^5: comparing 2 file time date stamps ( Path::Tiny File::stat Time::Piece )
by GotToBTru
in thread comparing 2 file time date stamps
by craigt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |