Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Removing extra spacesby Athanasius (Archbishop) |
on Jul 31, 2012 at 02:09 UTC ( [id://984547]=note: print w/replies, xml ) | Need Help?? |
Update: rickoy, welcome to the Monastery! The specification is a little unclear, but assuming you want to (a) remove all single spaces, and (b) squash all sequences of 2 or more spaces down to a single space:
Outputs:
HTH, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|