in reply to
Replace a word in a line except for the last char of the word?
You might be better replacing alternate spaces with since this has the same effect in HTML, takes up less space in the output, and is simpler code:
s/ / /g;
Comment on
Re: Replace a word in a line except for the last char of the word?
Download
Code
In Section
Seekers of Perl Wisdom