instead, since it doesn't mess with your newline characters. That is, with your version "perl\n" becomes "perl_".$str =~ s/ +/_/g;
In reply to Re: Re: Replacing multiple spaces into one character?
by Boldra
in thread Replacing multiple spaces into one character?
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |