Color-Rgb
view release on metacpan or search on metacpan
while ( <RGB> ) {
/^(\n|!|\#)/ and next; # empty lines and comments
chomp();
my ($r, $g, $b, $name) = $_ =~ /^\s*(\d+)\s+(\d+)\s+(\d+)\s+(.+)$/;
$self->{_rgb_map}->{ lc($name) } = [$r, $g, $b];
}
close (RGB) or croak "$self->{rgb_txt}: $!";
return bless $self => $class;
}
( run in 0.317 second using v1.01-cache-2.11-cpan-00829025b61 )