On Aug 29, Jeff 'japhy/Marillion' Pinyan said:
>You could do the remove whitespace regex all at once, and even include the
>lc() in there. I don't suggest it, though:
>
> ($scode = lc $ucscode) =~ s/\s*(\S*(?:\s+\S+)*)\s*/$1/;
And if you don't want to use $scode, and just want $ucscode, you could do:
$ucscode =~ s/\s*(\S*(?:\s+\S+)*)\s*/\L$1/;
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]