in reply to Getting Binomial Distribution under Math::Pari (log) and Combinatorial Method

Perl's log is natural log. Change
my $Prob = 10 ** ($log_Prob);
to
my $Prob = exp $log_Prob;

the lowliest monk