Hi,
Just trying to un-clutter some code. Following is the relevant part:
$ucscode is assigned a value via a split on : There could be white space
at the begging and end of the value. the value could be Upper case. The
end result should be no white space, all lower case. There may or may not
be a line-feed.
the result ends up in $scode.
I have:
my $ucscode;
my $scode;
split....
chomp $ucscode; # remove line-feed
$ucscode =~ s/^\s+|\s+$//g; # remove spaces
$scode=lc($ucscode); # make lower case.
Can this series be done with one variable? Can this be done on one line?
Thanks.
Roger
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]