title: How do I calculate a p-value if I have the t-statistic and d.f. (in Perl)?
body: <p>I have written a Perl script that performs many one-sample t-tests. I get thousands of t-statistics with their degrees of freedom (df). I need to upgrade the script to also return their p-values (there are too many to look them up manually in a table). Is there some kind of formula I can use for this with the t-statistic and d.f as input? I hope someone can help me with this, many thanks in advance!</p>
  
  <p>A.A.</p>