Might I suggest trying
www.statsmonks.org?
Seriously though - if you really want to code your own stats package in perl - try looking in the
Code Catacombs. Alternatively there are gazillions of
stats packages on the net.
I think the problem here is that this isn't really a perl related question, or at least it isn't phrased that way. Come back here with some perl code and people might be a bit more interested.
Damn! I just wasted my last -- on this Anonymous Monk!