On Wed, 27 Jun 2001, [iso-8859-1] Stéphane JEAN BAPTISTE wrote:
>
> Hi.
> I want to replace the String %0A by nothing. I'm using this line:
>$description=~tr/%0A//;
>
> But nothing change.
>
> What is my problem ?
There's a few things wrong with this, first, you're trying to replace a
st
Stéphane JEAN BAPTISTE a écrit :
> Hi.
> I want to replace the String %0A by nothing. I'm using this line:
>$description=~tr/%0A//;
>
> But nothing change.
>
> What is my problem ?
>
> tks
PS: There is'nt only 1 string but a lot.
On 27 Jun 2001 16:11:56 +0200, Stéphane JEAN BAPTISTE wrote:
>
> Hi.
> I want to replace the String %0A by nothing. I'm using this line:
>$description=~tr/%0A//;
>
> But nothing change.
>
> What is my problem ?
>
> tks
>
tr is not what you want. tr replaces characters with other charac
Try escaping the % symbol.
$description=~tr/\%0A//;
See this link for an explanation.
http://www.netcat.co.uk/rob/perl/win32perltut.html#38-Escaping
-Original Message-
From: Stéphane JEAN BAPTISTE
[mailto:[EMAIL PROTECTED]]
Sent: 27 June 2001 15:12
To: PERL
Subject: To replace a st