HTML::TagCloud::Simple is a very simple module that allows you to easily build tag clouds, similar to what delicious.com, flickr.com and many other websites provide (ex L<http://www.delicious.com/tag/>) To use: #!/usr/bin/perl -w use HTML::TagCloud::Simple;
my %h = ( foo => { count => 5, link_rel => '?count=<count>&value=<value>' }, bar => { count => 5, link_abs => 'http://bar.com' } );
my $html = HTML::TagCloud::Simple::build_cloud(\%h, 'http://baz.com/foo.php', 100, 100);
...
For more examples, see t/*.t
Initial implementation has only one function: build_cloud(\%hash, $base_url, $height, $width, [$sort_method], [$min_count]) -- returns an HTML string $height/$width - because this function returns a <div> with the tag inside, it needs to know how big to make the <div> $base_url- will be concatenated to to $hash{link_rel} to create an FQDN $sort_method - can be 'ascii', 'value', 'reverse-ascii' or 'reverse-value' $min_count - if $hash{count} < this, the link will not be included in the tag
Conor Horan-Kates, "<conor@cpan.org>".
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install HTML::TagCloud::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::TagCloud::Simple
CPAN shell
perl -MCPAN -e shell install HTML::TagCloud::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.