Skip Menu |

This queue is for tickets about the Benchmark-Chart CPAN distribution.

Report information
The Basics
Id: 97580
Status: new
Priority: 0/
Queue: Benchmark-Chart

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
KENTNL [...] cpan.org
Cc:
AdminCc:

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



Subject: fails under 5.19+ because of fatal warnings and experimental feature

Its a reasonably simple thing to fix for compatibility with older and newer versions:

 

 

Subject: keys_legacy.patch
--- lib/Benchmark/Chart.pm.old 2014-09-16 02:38:35.197396353 +1200 +++ lib/Benchmark/Chart.pm 2014-09-16 02:39:13.400263893 +1200 @@ -155,7 +155,7 @@ my $max = 0; my @y; - for my $key ( keys $b ) { + for my $key ( keys %{$b} ) { $cases{$key}->{$name} = $self->_calculateRate( benchmark => $b->{$key} ); if ( $cases{$key}->{$name} > $max ) { $max = $cases{$key}->{$name}; @@ -163,7 +163,7 @@ } if ( $self->{uniform} && $max > 0) { - for my $key ( keys $b ) { + for my $key ( keys %{$b} ) { $cases{$key}->{$name} = $cases{$key}->{$name} / $max * 100; } }