Data::Hash::Totals - Handle hashes that are totals or counts
Version 0.10
This module is so butt simple, but I'm tired of redoing this code over and over again.
my %fave_stooge_votes = ( Moe => 31, Larry => 15, Curly => 97, Shemp => 3, ); print as_table( \%fave_stooge_votes );
prints the following:
97 Curly 31 Moe 15 Larry 3 Shemp
Exports as_table.
as_table
Prints the contents of $hashref as a table in descending value order.
key/value pairs modify the output style. Currently, all that's supported is comma => 1 to insert commas in the numbers.
comma => 1
Andy Lester, <andy@petdance.com>
<andy@petdance.com>
Please report any bugs or feature requests to bug-data-hash-totals@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-data-hash-totals@rt.cpan.org
Copyright 2004 Andy Lester, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Data::Hash::Totals, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Hash::Totals
CPAN shell
perl -MCPAN -e shell install Data::Hash::Totals
For more information on module installation, please visit the detailed CPAN module installation guide.