Not recommended but TIMTOWTDI requires someone post this ;-)
$str =' Perlmonks is a very cool place '; $str = join '_', split /\s+/, $str; print $str;
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Replacing multiple spaces into one character?
by tachyon
in thread Replacing multiple spaces into one character?
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |