read date stamp on file

--===============1036853146==
Content-Type: multipart/alternative; boundary="0-1712558602-1206738563=:28646"
Content-Transfer-Encoding: 7bit

--0-1712558602-1206738563=:28646
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello:

I have a program that reads the size of the file by the following line:

$size =3D stat($upload_filename)->size;

Is there a similar line I can use to get the date / time stamp of the fil=
e. Thanx, and appreciate your feedback.

Regards,

Ted

--0-1712558602-1206738563=:28646
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello:<br><br>I have a program that reads the size of the file by the fol=
lowing line:<br><br>$size =3D stat($upload_filename)->size;<br><br>Is =
there a similar line I can use to get the date / time stamp of the file.&=
nbsp; Thanx, and appreciate your feedback.<br><br>Regards,<br><br>Ted<br>
--0-1712558602-1206738563=:28646--

--===============1036853146==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1036853146==--
Ted Yu [ Fr, 28 März 2008 22:09 ] [ ID #1931147 ]

RE: read date stamp on file

Did you read the documentation for the File::stat module? Or the
build-in stat() function?

Eric

________________________________

From: activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Ted Yu
Sent: Friday, March 28, 2008 5:09 PM
To: activeperl [at] listserv.ActiveState.com
Subject: read date stamp on file



Hello:

I have a program that reads the size of the file by the following line:

$size = stat($upload_filename)->size;

Is there a similar line I can use to get the date / time stamp of the
file. Thanx, and appreciate your feedback.

Regards,

Ted

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
eroode [ Fr, 28 März 2008 22:13 ] [ ID #1931148 ]
Perl » gmane.comp.lang.perl.active-perl » read date stamp on file

Vorheriges Thema: Unable to write to files using CGI
Nächstes Thema: What's AUTOLOAD?