Re[2]: Stripping line breaks

2001-08-25 Thread Maxim Berlin
Hello Rory, Saturday, August 25, 2001, Rory O'Connor [EMAIL PROTECTED] wrote: ROC thanks all for your help. It is my understanding that chomp($var); will ROC only strip the \n from the end of a string. I'm dealing with strings ROC that could potentially be littered with newline characters.

Re: Re[2]: Stripping line breaks

2001-08-25 Thread Christopher Solomon
On Sat, 25 Aug 2001, Maxim Berlin wrote: Hello Rory, snip p.s. does anyone know, why i can not write $a =~ s/$///g; ? You can. $a =~ s!$/!!g; Perl just gets confused with the /'s, you have to use alternate delimiters. Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional