Updated version of calc_odds.pl to include modern open syntax and correct odds ratio calculations