in reply to Working out frequency statistics with perl

You could try using the Statistics::Descriptive module to do the work for you.
  • Comment on Re: Working out frequency statistics with perl