Don't ask to ask, just ask | |
PerlMonks |
Re^5: Perl script on windows nodeby marto (Cardinal) |
on Apr 03, 2012 at 12:25 UTC ( [id://963231]=note: print w/replies, xml ) | Need Help?? |
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:
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.
In Section
Seekers of Perl Wisdom
|
|