sg has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
Rather than writing:
{ my $foo = "Ignore the \\slash, expand $boo."; }
is it possible to do something like:
{ # do something to get perl # to treat '\' as an ordinary character # so that one may write: my $foo = "Ignore the \slash, expand $boo."; }
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Making escape (\) ordinary in double quotes
by AnomalousMonk (Archbishop) on Apr 09, 2013 at 09:34 UTC | |
Re: Making escape (\) ordinary in double quotes
by 2teez (Vicar) on Apr 09, 2013 at 06:10 UTC | |
Re: Making escape (\) ordinary in double quotes
by Rahul6990 (Beadle) on Apr 09, 2013 at 05:31 UTC |
Back to
Seekers of Perl Wisdom