Subject: | new_RGB and new_RGB255 produce a warning |
Hi!
The constructors new_RGB and new_RGB255 produce a warning:
perl -w -M'Graphics::ColorObject' -e 'Graphics::ColorObject->new_RGB255([0,0,0])';
Use of uninitialized value within @_ in lc at
/opt/local/lib/perl5/site_perl/5.12.1/Graphics/ColorObject.pm line 1905.
The reason is that they call &new, which calls &namecolor with an undefined argument.
Simply inserting a "return unless defined $_[0]" at the beginning of &namecolor would fix it.
Claus