Hi all, I need to get the modified date of a file on the server, the code I have returns "Thu Jan 1 01:00:00 1970" even if I modify the file, so the modified date doesn't change. I am using the following code:

open(HANDLE, $FILE);
my $date = localtime( (stat HANDLE)[9] );



Anyone know what the problem is?


Cheers,

Graeme :)



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to