Help for this page

Select Code to Download


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