Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
CPAN contains a module called HTML::TagCloud that displays tag clouds. It is faster (but not as flexible) to use this module than to write your own code to display tag clouds. We'll develop our own code for displaying tag clouds in a moment, but first let's take a look at the easier method. Here is a sample script that uses HTML::TagCloud:
#!/usr/bin/perl
use HTML::TagCloud;
use strict;
use warnings;
require "genesis.pl";
my $cloud = HTML::TagCloud->new;
foreach my $tag (keys %{$tags})
{
$cloud->add($tag, $tags->{$tag}->{url}, $tags->{$tag}->{count});
}
print $cloud->html_and_css();