Subject: | use fails if a file named 'HTML', etc. is present |
Date: | Thu, 11 Feb 2010 01:14:26 +0100 |
To: | bug-Graphics-ColorObject [...] rt.cpan.org |
From: | Claus Färber <cfaerber [...] cfaerber.name> |
Hi!
Simply importing Graphics::ColorObject fails if there is a non-empty file in the current working directory that is named 'HTML', 'X', 'Windows' or 'Netscape'.
This is caused by a bug in Graphics::ColorName, which may be unfixable: https://rt.cpan.org/Ticket/Display.html?id=54500
Steps to reproduce:
$ echo "dummy" >HTML ; perl -MGraphics::ColorObject
substr outside of string at /opt/local/lib/perl5/site_perl/5.8.9/Graphics/ColorNames.pm line 314, <GEN0> line 1.
Missing color name at /opt/local/lib/perl5/site_perl/5.8.9/Graphics/ColorObject.pm line 1902
Compilation failed in require.
BEGIN failed--compilation aborted.
Message body not shown because it is not plain text.