Hi Thomas,
use the stat function with the file.
you canget more information by typing
perldoc -f utime
and
perldoc -f stat
reagrds
-- Gabor
On 2001.07.09 21:13 Thomas Jakub wrote:
> I'm trying to see when a file was last modified.
> Here's the code segment...
>
> open filename, ">temp";
> #random time consumming statements go here
> $then = time;
> utime $then, $then, filename;
> print $then;
> close filename;
>
> The problem is, every time I do this, I don't get the
> time of when I last added something to the file, but
> instead the most recent time in which I was able to
> add something to the file... How can I get the time
> at which the file was last modified?
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
--
Gabor Szabo
http://www.tracert.com/
Web backend development
Phone: +972-(0)54-624648