Vote::Count::TopCount
$self->TopCountMajority( $round_topcount ) or $self->TopCountMajority( undef, $active_choices )
Will find the majority winner from the results of a topcount, or alternately may be given undef and a hashref of active choices and will topcount the ballotset for just those choices and then find the majority winner.
Returns a hashref of results. It will always include the votes in the round and the thresshold for majority. If there is a winner it will also include the winner and winvotes.
This method wraps TopCountMajority adding logging, the logging of which would be a lot of boiler plate in round oriented methods. It takes the same parameters and returns the same hashref.
To install TextTableTiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TextTableTiny
CPAN shell
perl -MCPAN -e shell install TextTableTiny
For more information on module installation, please visit the detailed CPAN module installation guide.