On a Win32 system, how do you get a date stamp of a file?
I used:
#!/usr/bin/perl -w
use strict;
use Data::Dumper;
use File::stat;
my $filename = "test.txt";
my $stat = stat($filename);
print Dumper($stat);
my $modified_time = stat($filename)->mtime;
print ("The modified time of $filename is: $modified_time");
But this only gets me time. Nothing in the element list for STAT
seems to give me the date.
Any suggestions?
Thanks in advance.
DA
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>