in reply to Re^4: Perl script on windows node
in thread Perl script on windows node

If you copy and paste this code as is and expect it to do what you want, it's not going to work. The variable $file needs to contain the path to a file for example:

my $file = "C:\\stat.pl";

With the value provided as an example the script will always pass through to the "File is not recent" message. You should alter the code to check for existing files. I'll leave that as an exercise for you.