in reply to Building a tag cloud from a database
v----- NOT $count? while (($word, $occurrence) = $sth->fetchrow_array ){ %dbtags = ($word, $count); } ^--- NOT $occurence?
If you'd done
while (my ($word, $occurence) =
rather than predeclaring your $count, perl could have told you.
foreach $k (@sortkeys) { make it
foreach my $k (@sortekeys) {
sub DetermineFontSize ($) sub DetermineFontSize
print <<EOT print <<"EOT";
Update2:You should also try Data::Dumper, and do some print Dumper( \$var ) various places in your code, start with print Dumper( \%dbtags ); just after pulling from the database. Then, ask yourself why you never use that hash again....
|
|---|