in reply to Mathematical averages

Hey, thanks so much dws and dpuu, your answers where just the thing I need. I was surprised at how dpuu's answer worked so well and fast (sorry dws, I just used dpuu's suggesstion first). Anyway, thank you again for saving my butt!

Just Another Perl Wannabe