P
Petterson Mikael
Hi,
I am trying to get change time of a directory with the following perl
snippet. @allfiles are containing the directory names.
foreach (@allfiles) {
if ( -d "$dir/$_"){
print "$dir/$_\n";
$mtime = (stat("$dir/$_"))[9]; # modify time
print "$mtime";
}
}
I get the following error message:
Use of uninitialized value in string at test.pl line 17
Which is this line:
print "$mtime";
Any hints!
//Mikael
I am trying to get change time of a directory with the following perl
snippet. @allfiles are containing the directory names.
foreach (@allfiles) {
if ( -d "$dir/$_"){
print "$dir/$_\n";
$mtime = (stat("$dir/$_"))[9]; # modify time
print "$mtime";
}
}
I get the following error message:
Use of uninitialized value in string at test.pl line 17
Which is this line:
print "$mtime";
Any hints!
//Mikael