|
I don't have the time to write it all up but here are some hints and some code.
#!/usr/bin/perl
use strict;
use File::stat;
use POSIX;
my $stat_obj = stat("stattest.pl");
print "mtime: " . $stat_obj->mtime() . "\n";
print "Formatted: " . strftime("%D", localtime($stat_obj->mtime())). "\n";
not sure if this runs should ? Also you don't have to use the File::stat obj I just like that interface better than some big array that you get using the standard perl stat funtion. For more info try
perldoc File::stat
perldoc -f stat
-Matt
|