in reply to Probability sum of random variables
It's not in Perl, but some of the best sources for practical algorithms are the Numerical Recipes books, which have online editions. You might also look at Mastering Algorithms With Perl