can do
>$str =~ tr/\n//d;
>
>-Original Message-
>From: Rory O'Connor
>To: [EMAIL PROTECTED]
>Sent: 8/25/2001 10:13 AM
>Subject: Re: Stripping line breaks
>
>thanks all for your help. It is my understanding that chomp($var);
will
>only strip the \n from the
If you always know it will be a \n, then you can do
$str =~ tr/\n//d;
-Original Message-
From: Rory O'Connor
To: [EMAIL PROTECTED]
Sent: 8/25/2001 10:13 AM
Subject: Re: Stripping line breaks
thanks all for your help. It is my understanding that chomp($var); will
only strip the \n
thanks all for your help. It is my understanding that chomp($var); will
only strip the \n from the end of a string. I'm dealing with strings
that could potentially be littered with newline characters. I have an
o'reilly perl book, but it's not super clear on how to strip *all*
newline character
Hello Rory,
Saturday, August 25, 2001, Rory O'Connor <[EMAIL PROTECTED]> wrote:
ROC> Another quick one - how can I easily strip line break characters from a
ROC> variable?
see
perldoc -f chomp
Best wishes,
Maximmailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail