Help for this page

Select Code to Download


  1. or download this
            $words += scalar(split(/\s+/, $_));
    
  2. or download this
            $words += split;
    
  3. or download this
    my %unique_word_count;
    while ( <FILE> ) {
    ...
            $unique_word_count{ $_ }++ for @words;
    }