1 2 3 4 5 6
foreach my $file(@files){ if (-e $file){ my @fileProps = stat($file); &log_this($customer,$ordername,"filestamp of file $file is: " . $fileProps[9] ); } }
my @fileProps = stat( $file ) or die "stat $file: $!\n";
my @fileProps = stat($file) or die "stat of $file failed!: $!";
my @fileProps = stat($file) or die "stat of $file failed!: $!";
1 2 3
my @fileProps = stat($file) or die "stat of $file failed!: $!"; use Data::Dumper; print "DEBUG###\n", Dumper(\@fileProps), "\n####\n";
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DEBUG###
$VAR1 = [
bless( [
5,
0,
33206,
1,
0,
0,
5,
'1418962',
1325069244,
1325068443,
1325069244,
'',
''
], 'File::stat' )
];
####
1 2
my $stat = stat($file) or die "Error in File::stat file $file : $!"; &log_this($customer,$ordername,"filestamp of file $file is: " . $stat->mtime );