in reply to Creating Tag Clouds from a Database

You're missing semicolons. Your prints should look like...
print <<EOT; </p> </div> </body> </html> EOT


Unless I state otherwise, my code all runs with strict and warnings