Skip Menu |

This queue is for tickets about the Number-Bytes-Human CPAN distribution.

Report information
The Basics
Id: 119241
Status: resolved
Priority: 0/
Queue: Number-Bytes-Human

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

Bug Information
Severity: Normal
Broken in: 0.10
Fixed in: 0.11

Subject: Debug output on parse failure
Download (untitled) / with headers
text/plain 629b
If parse_bytes fails, a bunch of debug info lands on STDERR: $ perl -MNumber::Bytes::Human=parse_bytes -E 'parse_bytes("xxx")' Could not parse human readable byte value 'xxx' at -e line 1. $VAR1 = 'B'; $VAR2 = 1024; $VAR3 = 'T'; $VAR4 = 1024; $VAR5 = 'ZiB'; $VAR6 = 1024; $VAR7 = 'YB'; $VAR8 = 1000; $VAR9 = 'KiB'; $VAR10 = 1024; ... Looks like some debug code got left in by mistake: if( !defined $mult ) { carp "Could not parse human readable byte value '$human'"; use Data::Dumper; print STDERR Dumper( %suffix_block ); return undef; }

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

Please report any issues with to