Help for this page

Select Code to Download


  1. or download this
    #check each file in logs directory
    my @to_move;
    ...
        $file eq '.' || $file eq '..'
        or push @to_move, $file;
    }
    
  2. or download this
    #check each file in logs directory
    my @to_move;
    ...
        next if $file =~ /^\.\.?$/;
        push @to_move, $file;
    }
    
  3. or download this
    my @files = grep { -M "$log_dir/$_" > 1 && !/^\.\.?$/ } readdir(LOGS);