in reply to Backslash Interpolation
That will return the "interpolated" version.my $var = "\\what will I get?."; print $var; \what will I get?.
That will print whatever you give it. Of course, you can always take the other way around and get some truly safe string data:my $var = '\\\\what will I get?.'; print $var; \\what will I get?.
I don't think CGI does anything fancy with backslashes, so are you sure the data gets in there in the right format? As Graham pointed out, using quotemeta on your input data may help out.my $var = quotemeta("\\what will I get?."); print $var; \\what\ will\ I\ get\?\.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Backslash Interpolation
by Anonymous Monk on Jun 14, 2001 at 16:52 UTC | |
by Graham (Deacon) on Jun 14, 2001 at 17:28 UTC | |
by Anonymous Monk on Jun 14, 2001 at 17:42 UTC | |
by Graham (Deacon) on Jun 14, 2001 at 18:33 UTC | |
by tye (Sage) on Jun 14, 2001 at 20:27 UTC | |
by Anonymous Monk on Jun 14, 2001 at 21:03 UTC | |
by tye (Sage) on Jun 14, 2001 at 21:13 UTC |