#example:
use Statistics::R;#use R in perl
my $R = Statistics::R->new() ;
$R->startR ;
$R->send(qq`x1<-fisher.test(matrix(c(919,82,29946,3264),ncol = 2))
p<-x1\$p.value
print(p)`);
my $ret = $R->read;
print $ret,"\n";
$R->stopR();
2022-10-27 13:42:00
#example:
use Statistics::R;#use R in perl
my $R = Statistics::R->new() ;
$R->startR ;
$R->send(qq`x1<-fisher.test(matrix(c(919,82,29946,3264),ncol = 2))
p<-x1\$p.value
print(p)`);
my $ret = $R->read;
print $ret,"\n";
$R->stopR();