- or download this
use Math::Pari qw/ PARI /;
sub PARIdo {
...
$s =~ s/[{}\s]+//g;
PARI($s);
}
- or download this
PARIdo(q{
mygcd(a, b) = {
...
}
});
print PARI("mygcd(12,8)");
- or download this
my $v1 = PARI(12);
my $v2 = PARI(8);
print PARI(qq{mygcd($v1,$v2)});