in reply to
Looking for white spaces between words
Just for fun, a lookaround solution. When you find a space preceded by a space, or a space followed by a space, replace it:
s/(?<= ) | (?= )/ /g;
[download]
The PerlMonk
tr///
Advocate
Comment on
Re: Looking for white spaces between words
Download
Code
In Section
Seekers of Perl Wisdom