$str ="Any help would be greatly appreciated"; $str =~ s/\s+/ /g; print $str;
In reply to Re: Replace consecutive whitespaces with single whitespace
by tilly
in thread Replace consecutive whitespaces with single whitespace
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |