Syntactic Confectionery Delight | |
PerlMonks |
Re: Removing extra spacesby johngg (Canon) |
on Jul 31, 2012 at 09:16 UTC ( [id://984588]=note: print w/replies, xml ) | Need Help?? |
You could use a negative look-ahead to replace any space that is not followed by a space with nothing. This will break down if there are more than two spaces though.
Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|