Skip Menu |

This queue is for tickets about the GD-SVG CPAN distribution.

Report information
The Basics
Id: 37386
Status: resolved
Priority: 0/
Queue: GD-SVG

People
Owner: harris [...] cshl.edu
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.28
Fixed in: (no value)



Subject: Argument "gdTransparent" isn't numeric in numeric eq (==)
I got warnings in the form of Argument "gdTransparent" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.8/GD/SVG.pm line 1031. when using GD::SVG. The problem seems to be caused in _distill_gdSpecial, where the colors are compared using == and != ($prev==$_ and $prev != $_). This is OK unless "special" colors like gdTransparent are used, which are not numeric, hence the warning. To fix this, probably just replacing == by eq und != by ne could be done, or just turn off warnings for this block, either by using "no warnings 'numeric'", or, if you want to support pre-5.6 perls, by unset a localized $^W. Regards, Slaven
Thanks for catching this. Fixed in v0.31.