On Mon, 1 Oct 2001, Guy Tubbs wrote:
> Can anyone give me the code that will replace all the carriage returns in a
> variable with another character.
>
> I am getting input from a web page and need to replace the returns with the
> <br> tag.
I tried this:
my $text = "some text\n";
$text =~ s/\n/<br>/g;
print $text;
This gave me:
some text<br>
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
I don't kill flies, but I like to mess with their minds. I hold them above
globes. They freak out and yell "Whooa, I'm *way* too high."
-- Bruce Baum
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]