in reply to Calculating cross-correlation

There are a few statistics modules around, e.g. PDL::Stats::Basic can calculate a Pearson correlation coefficient if that's what you need. If you have a lot of statistical analyses to do you might want to use R instead.