Have a look at the CPAN statistics modules.
Hope this helps, -gjb-
In reply to Re: correlation by gjb in thread correlation by Anonymous Monk