- or download this
my @fileanddate;
- or download this
@fileanddate = ($filename, $mtime);
$filesanddates[$filecounter] = \@fileanddate;
- or download this
foreach my $filename (@filenames) {
my $mtime=(stat ($filename))[9];
...
# Note lexical scoping of @fileanddate
push @filesanddates, \@fileanddate;
}
- or download this
foreach my $filename (@filenames) {
push @filesanddates, [ ( $filename, (stat ($filename))[9] ) ];
}