App-WRT
view release on metacpan or search on metacpan
lib/App/WRT/Date.pm view on Meta::CPAN
Return one or more mtimes for a given list of files.
=cut
sub get_mtime {
my (@filenames) = @_;
my @mtimes;
for my $filename (@filenames) {
#my( $dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size,
# $atime, $mtime, $ctime, $blksize, $blocks )
# = stat( $filename );
push @mtimes, (stat $filename)[9];
}
# return a list if we've got more than one, a scalar
# otherwise. is this evil? or even necessary?
if (@mtimes > 1) {
return @mtimes;
( run in 0.473 second using v1.01-cache-2.11-cpan-5735350b133 )