Skip Menu |

This queue is for tickets about the HTML-TagCloud CPAN distribution.

Report information
The Basics
Id: 79959
Status: new
Priority: 0/
Queue: HTML-TagCloud

Owner: Nobody in particular
Requestors: tom [...]

Bug Information
Severity: (no value)
Broken in: 0.37
Fixed in: (no value)

Subject: Failure to cope gracefully with a tag count of 0
Download (untitled) / with headers
text/plain 581b
HTML::TagCloud dies when it encounters a tag with a count of 0. When I run: perl -MHTML::TagCloud -E 'my $t = HTML::TagCloud->new; $t->add(qw(tag link 0)); $t->html_without_categories;' my code dies with the following output: Can't take log of 0 at /opt/map/apps/perlmodules/HTML/ line 80. Arguably, users shouldn't pass in tags with a count of 0, but dealing with this makes the code more robust. You might want to add a test case for this and have the code ignore all tags with a count of 0. Thank you for your work maintaining this useful module. Tom Hukins

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to