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
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