in reply to Replace consecutive whitespaces with single whitespace
$str ="Any help would be greatly appreciated"; $str =~ s/\s+/ /g; print $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace consecutive whitespaces with single whitespace
by JavaFan (Canon) on Mar 26, 2009 at 12:47 UTC | |
by tilly (Archbishop) on Mar 26, 2009 at 21:38 UTC | |
by JavaFan (Canon) on Mar 27, 2009 at 08:10 UTC | |
by tilly (Archbishop) on Mar 27, 2009 at 13:20 UTC |