develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #128738] \x{ffffffff} as string delim preserves \\

Thread Previous
From:
Father Chrysostomos
Date:
July 26, 2016 07:28
Subject:
[perl #128738] \x{ffffffff} as string delim preserves \\
Message ID:
rt-4.0.18-28919-1469518117-274.128738-75-0@perl.org
# New Ticket Created by  Father Chrysostomos 
# Please include the string:  [perl #128738]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128738 >


OK, so this is the *real* bug I was after when I opened ticket #128737 (when I wasn’t thinking):

$ ./miniperl  -e 'eval "print q \x{fffffff}Hello, \\\\whirled!\n\x{fffffff}" or die;'
Hello, \whirled!

That is expected.  But add another f:

$ ./miniperl  -e 'eval "print q \x{ffffffff}Hello, \\\\whirled!\n\x{ffffffff}" or die;'
Hello, \\whirled!

And \\ in a q() string is now being preserved, instead of being changed to a single backslash.

Same results from 5.8.7 to 5.25.3.

-- 

Father Chrysostomos


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About