Baseball::Sabermetrics provides an easy interface for calculating baseball statistics, given a data importer. In this package, I've writen CPBL.pm for (Chinese Professional Baseball League, http://www.cpbl.com.tw).