Help for this page

Select Code to Download


  1. or download this
    while (<FICC>) {
      my @words = split /\s+/,lc $_;
      ++$uniq1{$_} for @words;
    }
    
  2. or download this
    #!perl
    my %uniq1= (
    ...
    my @words = ('ant','bat','cat','dog','eel','fox');
    my @match = grep $uniq1{$_}, @words;
    print "@match\n"