Help for this page

Select Code to Download


  1. or download this
    # while not EOF keep going
    while ( <DATA> ) {
    ...
            $foundCount++; # increment total found words
        }
    }
    
  2. or download this
    push @found, "\nError in line $lineCount of file $file occurence of \"
    +$word\" :\n\t@words\n";
    
  3. or download this
    # read in all the keywords from the configFile and put all the words i
    +nto a hash
    %regex = map { $_ => qr/$_/ } init_keywords ($ConfigFile);
    ...
    
    # init_keywords just returns an array of keywords all in lower case.
     ....
    
  4. or download this
    %regex = map { $_ => qr/$_/i } init_keywords ($ConfigFile);