in reply to using R from Perl
Here is another PM thread (which shows a basic approach):
Passing parameters to R script
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (249 votes). Check out past polls.