in reply to Covariance Matrices

Look in http://pdl.perl.org

A good start point is http://pdl.sourceforge.net/PDLdocs/

It takes some time to learn how to work with the PDL module, but I think it's worth it.