Subject: | without option -w, get a lot of warnings |
redhat 7.2
Linux 2.4.16-y0l0 #2 Fri Dec 7 11:38:58 CET 2001 i686
Color::Rgb 1.1
perl 5.6.0
The following script (with -w flags) produce many warnings:
=============
#!/usr/bin/perl -w
use strict;
use Color::Rgb;
my $rgb = new Color::Rgb(rgb_txt=>'/usr/X11R6/lib/X11/rgb.txt');
my @Namedcolors = $rgb->names;
print @Namedcolors;
foreach (@Namedcolors){
print $rgb->hex($_);
print "\n";
}
===============
ex:
Use of uninitialized value in regexp compilation at /usr/lib/perl5/site_perl/5.6.0/Color/Rgb.pm line 97.
or
Use of uninitialized value in concatenation (.) at /usr/lib/perl5/site_perl/5.6.0/Color/Rgb.pm line 60.
Marc-Olivier BERNARD