use Text::Quantize; print quantize([26, 24, 51, 77, 21]); __END__ value ------------- Distribution ------------- count 8 | 0 16 |@@@@@@@@@@@@@@@@@@@@@@@@ 3 32 |@@@@@@@@ 1 64 |@@@@@@@@ 1 128 | 0
To install Text::Quantize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Quantize
CPAN shell
perl -MCPAN -e shell install Text::Quantize
For more information on module installation, please visit the detailed CPAN module installation guide.