Skip Menu |
 

This queue is for tickets about the Graphics-ColorObject CPAN distribution.

Report information
The Basics
Id: 62284
Status: new
Priority: 0/
Queue: Graphics-ColorObject

People
Owner: Nobody in particular
Requestors: CFAERBER [...] cpan.org
Cc:
AdminCc:

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



Subject: new_RGB and new_RGB255 produce a warning
Download (untitled) / with headers
text/plain 456b
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


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.