App-freqtable
    
    
  
  
  
view release on metacpan or search on metacpan
script/freqtable view on Meta::CPAN
 2       eight
 1       seven
 2       one
 1       six
 1       nine
 1       two
 1       four
=head2 Running table (`--output-every` option)
If you have streaming input, you can instruct `freqtable` to print the result
periodically after a number of input lines/words/characters/bytes. You can also
instruct to clear the terminal screen before every output
(`--clear-before-output`).
 % perl -MArray::Sample::WeightedRandom=sample_weighted_random_with_replacement \
     -E'say sample_weighted_random_with_replacement(
          [ ["a", 1], ["b", 2], ["c", 3], ["d",5] ], 1) while 1' | \
   freqtable --output-every 10000 --clear --percent
Sample output:
( run in 0.379 second using v1.01-cache-2.11-cpan-5dc5da66d9d )