I'd recommend using the
Perl R modules. These enable access to the
R-project engine from perl. The R-project engine is a full featured statistical package, with many extra modules available on their own 'CRAN'.
I also found a
nice comparison between R and perl.
There's also a
PDL-R-Math module available, if you want to use PDL as suggested above.