# New Ticket Created by  Matt Diephouse 
# Please include the string:  [perl #38208]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38208 >


Backslashes don't escape single quotes in strings:

   [EMAIL PROTECTED]:~/parrot$ cat test.pir
   .sub main :main
     $S0 = 'baz\'s bar'
     end
   .end
   [EMAIL PROTECTED]:~/parrot$ parrot test.pir
   error:imcc:syntax error, unexpected IDENTIFIER, expecting '\n'
   in file 'test.pir' line 2
   [EMAIL PROTECTED]:~/parrot$

This would be useful for avoiding backslash escaping hell:

   $S0 = ".throw(\"can't read \\\"foo\\\": variable isn't array\")"

vs.

   $S0 = ".throw('can\'t read \"foo\": variable isn\'t array')"

--
matt diephouse
http://matt.diephouse.com

Reply via email to