Help for this page

Select Code to Download


  1. or download this
      ( $dir, $file ) = m/(.*)[\\\/](.+)/ ? ( $1, $2 ) : ( undef, $_ );
    #  print "$file is in the directory $dir\n";
      $fileinfo[$i] = [$file, $dir];
    
  2. or download this
        $refarray1 = $fileinfo[$c];
        if (${$refarray1}[0] eq $intersect) {
          print "File: ${$refarray1}[0] in directory ${$refarray1}[1]\n";
          $matchedfiles[$i] = [${$refarray1}[0], ${$refarray1}[1]];
        }
    
  3. or download this
          $matchedfiles[$i++] = [${$refarray1}[0], ${$refarray1}[1]];
    
  4. or download this
    my %md5_of_known_bad;
    foreach $md5data (@knownbad) {
      ...
      $md5_known_bad{$filename} = $md5hash;
    }
    
  5. or download this
      if (exists $md5_of_known_bad{$filename}) {
         # $filename is a known bad
      }
    
  6. or download this
    my @uniq;
    @uniq = grep { exists $md5_of_known_bad{$_} } @sysfiles;