in reply to Re: comparing file times [-M Vs. stat()]
in thread comparing file times
With error checking:
stat( $qfn ) or die( "stat: $!\n" ); my $mtime = ( stat _ )[9];
stat( $qfn ) or die( "stat: $!\n" ); my $mtime = -M _;
defined( -M $qfn ) or die( "stat: $!\n" );
|
|---|