Help for this page

Select Code to Download


  1. or download this
        my @words;
        my $filename="terms.txt";
    ...
            close $FH;
        } 
        my $wordsRX = join "|", map quotemeta, @commonwords;
    
  2. or download this
    #I read with the script above my @terms and then add new words to it, 
    +eliminate duplicates, if any, and write it back.
        my @wordsfiltered = uniq_array(@terms);
    ...
            print $fh $_ . "\n";
        }
        close $fh;
    
  3. or download this
    store(\@wordsfiltered, "terms.array");
    my @words= @{ retrieve("terms.array") };