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