On Wed, 11 Apr 2001 11:34:30 -0400, Morbus Iff wrote:

> >>>   $path =~ s/"/\"/g;
> >>>   $url  =~ s/"/\"/g;
> >>
> >>I don't think this will do much. You must have forgotten to double the
> >>backslashes.
> >
> >Oops!
>
>Well, it looks like I'm the horribly confused <g>... What'd I'd miss?

The fact that

        s/"/\"/g;

does the same as

        s/"/"/g;

and replacing quotes with quotes doesn't do anything useful.

If you want a literal backslash, you need to put 2 backslashes there.

        s/"/\\"/g;

-- 
        Bart.

Reply via email to