Help for this page

Select Code to Download


  1. or download this
    foreach my $dir (@directories)
    {
        foreach my $file (@filenames)
        {
            $age = -M $file;
        ....
    
  2. or download this
    foreach my $dir (@directories)
    {
        foreach my $file (@filenames)
        {
            $age = -M "$dir/$file";  # see the difference?
        ....
    
  3. or download this
    foreach my $dir (@directories)
    {
        chdir $dir or die "Couldn't chdir to $dir: $!\n";
    ...
            ....
        }
        chdir ".." or die "Help, I stranded myself";