At 11:34 -0400 2001.04.11, 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?


Script:
        $x = 'fo"o';
        $x =~ s/"/\"/g;
        print $x;

Returns:
        fo"o

Script:
        $x = 'fo"o';
        $x =~ s/"/\\"/g;
        print $x;

Returns:
        fo\"o

That is, an extra \ was needed.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to