in reply to
If statement not working
Setup a Hash like this: my %shortname=( 'baby blue'=>'BB, 'dark purple'=>DB ...etc);
for my $c (keys %shortname){$colr =~s/($c)/$shortname{$c}/g ;}
I hope life isn't a big joke, because I don't get it.
-SNL
Comment on
Re: If statement not working
In Section
Seekers of Perl Wisdom