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/
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Chris Nandor
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Alan Fry
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Bart Lateur
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Chris Nandor
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Alan Fry
- [MacPerl] [OT] "Morbus Iff's Program" Morbus Iff
- Re: [MacPerl] [OT] "Morbus Iff's Program" Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Chris Nandor
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Alan Fry
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Alan Fry
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... Gero Herrmann
- Re: [MacPerl] Processes, Command Parameters, and Other Apps.... John W Baxter
