in reply to Server side computational suggestion
Although PDL is probably a better solution Inline C could work if you need to write some custom low level things PDL doesn't provide. This way you get the speed for critical sections and all your glue and higher level work can be in Perl.