in reply to Re: Re: Backslash Interpolation
in thread Backslash Interpolation
Could you not do a basic string substitution to account for these characters.
will convert the string '\\what will I get?.'my $x='\\what will I get?.' $x =~ s/\\/\\\\/ print $x
\\what will I get?.
will account for multiple instances of \ within the string$x =~ s/\\/\\\\/g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Backslash Interpolation
by Anonymous Monk on Jun 14, 2001 at 17:42 UTC | |
by Graham (Deacon) on Jun 14, 2001 at 18:33 UTC |