#!perl use strict; use Statistics::R; my $R = Statistics::R->new(); $R->run_from_file( 'c:/folder/myprogram.R' );