Skip Menu |

This queue is for tickets about the RRD-Simple CPAN distribution.

Report information
The Basics
Id: 69730
Status: new
Priority: 0/
Queue: RRD-Simple

People
Owner: Nobody in particular
Requestors: bitcard-c [...] geekfarm.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.44
Fixed in: (no value)



Subject: Hexadecimal number > 0xffffffff non-portable
I have received this error using RRD::Simple on OS X on both Snow Leopard and Lion with a custom built perl. Hexadecimal number > 0xffffffff non-portable at /usr/local/wu/root/perl- 5.14.1/lib/site_perl/5.14.1/RRD/Simple.pm line 1125.2011 I was able to resolve the issue using the attached patch which uses Math::BigInt. Please let me know if you need any additional information.
Subject: Simple.pm.patch
--- Simple.pm.orig 2011-07-23 20:04:02.000000000 -0700 +++ Simple.pm 2011-07-23 19:39:39.000000000 -0700 @@ -29,6 +29,7 @@ use Carp qw(croak cluck confess carp); use File::Spec qw(); # catfile catdir updir path rootdir tmpdir use File::Basename qw(fileparse dirname basename); +use Math::BigInt; use vars qw($VERSION $DEBUG $DEFAULT_DSTYPE @EXPORT @EXPORT_OK %EXPORT_TAGS @ISA); @@ -1122,7 +1123,7 @@ $pkg = undef; } "$_[0]" =~ /0x(\w+)/; - my $i = do { local $^W; hex $1 }; + my $i = Math::BigInt->new( $1 )->as_hex(); bless $_[0], $pkg if defined $pkg; return $i; }