I would like to check the last modified time of my file. So does the following code look okay:
my $hour = 1 / 24; while ( -M $myFile < $hour ) { sleep (10); } if ( -M $myFile > $hour ) { print "file has not been modified for more than 1 hr \n"; }
In reply to file modified by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |