Something like this?

my $othercharacter = 'Z';

$yourvariable =~ s/\r/$othercharacter/g;

# \r is carriage return
# /g at the end means do them all

- Roger -

----- Original Message -----
From: "Guy Tubbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 4:53 PM
Subject: Replacing carriage returns in a variable


> Hi,
>
> 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.
>
> Thanks,
> Guy
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to