Re: Re[8]: Stripping line breaks

2001-08-25 Thread Christopher Solomon
On Sun, 26 Aug 2001, Maxim Berlin wrote: > Hello Christopher, > > Sunday, August 26, 2001, Christopher Solomon <[EMAIL PROTECTED]> wrote: > > CS> or am I misunderstanding you? > > may be. > example: > > $regex=; chomp $regex; > $variable=; chomp $variable; > $a =~ s!$variable!$regex!; > We

Re[8]: Stripping line breaks

2001-08-25 Thread Maxim Berlin
Hello Christopher, Sunday, August 26, 2001, Christopher Solomon <[EMAIL PROTECTED]> wrote: >> >> >> p.s. does anyone know, why i can not write "$a =~ s/$///g;" ? >> >> >> >> CS> You can. >> >> >> >> CS> $a =~ s!$/!!g; >> >> >> >> CS> Perl just gets confused with the /'s, you have to use alte