Help for this page

Select Code to Download


  1. or download this
    @files = grep  { /\errors.txt$/ && -f $_ }, @files;
    
  2. or download this
    my @files = File::Find::Rule->file()->name('errors.txt')->maxdepth(1)-
    +>in($dir);
    
  3. or download this
    my $file = $dir . '/errors.txt';
    push @files, $file if -f $file;