in reply to Re: Replacing multiple spaces into one character?
in thread Replacing multiple spaces into one character?
#!/usr/bin/perl -wT use strict; my $str =' Perlmonks is a very cool place '; $str = join '_', split ' ', $str; print $str, "\n"; =OUTPUT Perlmonks_is_a_very_cool_place
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Replacing multiple spaces into one character?
by tachyon (Chancellor) on Oct 09, 2001 at 07:47 UTC | |
by blakem (Monsignor) on Oct 09, 2001 at 08:01 UTC |