develooper Front page | perl.beginners | Postings from December 2002

Re: file time

Thread Previous | Thread Next
From:
Mystik Gotan
Date:
December 11, 2002 08:13
Subject:
Re: file time
Message ID:
F217mXL3zF6GEe6zLuy00003d6d@hotmail.com
@stat = stat $file;
$time = @stat[10];
print $time;



--------------
Bob Erinkveld (Webmaster Insane Hosts)
www.insane-hosts.net
MSN: gotan2k3@hotmail.com





>From: "Jerry Preston" <g-preston1@ti.com>
>Reply-To: <g-preston1@ti.com>
>To: "Beginners Perl" <beginners@perl.org>
>Subject: file time
>Date: Wed, 11 Dec 2002 09:51:55 -0600
>
>Hi!
>
>I am trying to get the current file time by the following:
>
>       $file_datetime = ctime( stat( "$file_name" )->mtime );
>
>All I get is the time that the file was created.  What am I doing wrong?
>
>Thanks,
>
>Jerry
>


_________________________________________________________________
Ontvang je Hotmail & Messenger berichten op je mobiele telefoon met Hotmail 
SMS http://www.msn.nl/jumppage/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About