in reply to Replacing multiple spaces into one character?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing multiple spaces into one character?
by blakem (Monsignor) on Oct 09, 2001 at 07:36 UTC | |
by tachyon (Chancellor) on Oct 09, 2001 at 07:47 UTC | |
by blakem (Monsignor) on Oct 09, 2001 at 08:01 UTC |