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

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

Thread Previous
Father Chrysostomos
July 26, 2016 07:28
[perl #128738] \x{ffffffff} as string delim preserves \\
Message ID:
# New Ticket Created by  Father Chrysostomos 
# Please include the string:  [perl #128738]
# in the subject line of all future correspondence about this issue. 
# <URL: >

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About