I've written and released a collection of Perl Libraries for determining the results of Alternative Voting Methods. Currently both Range and Ranked Ballots are supported. https://metacpan.org/pod/Vote::Count