RE: Stripping line breaks

2001-08-25 Thread Rory O'Connor
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

RE: Stripping line breaks

2001-08-25 Thread Gibbs Tanton - tgibbs
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

Re: Stripping line breaks

2001-08-25 Thread Rory O'Connor
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

Re: Stripping line breaks

2001-08-25 Thread Maxim Berlin
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