http://qs321.pair.com?node_id=11144667

LanX has asked for the wisdom of the Perl Monks concerning the following question:

Dear brethren,

please help me understand either

from perlop#Quote-and-Quote-like-Operators

\x{263A} [1,8] hex char (example shown: SMILEY) \x{ 263A } Same, but shows optional blanks inside and adjoining the braces

DB<55> p join ",",map {ord} split //, "\x{ 41 }" + 0 + DB<56> p join ",",map {ord} split //, "\x{41}" + 65 + DB<57> p join ",",map {ord} split //, "\x{263A}" + 9786 + DB<58> p join ",",map {ord} split //, "\x{ 263A }" + 0 + DB<59> p "\x{41}" + A + DB<60> p "\x{ 41 }" + ^@

tested with strawberry perl 5.032001 on win

Question: In which way is this

"Same, but shows optional blanks inside and adjoining the braces" ?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

update

°) OK - ironically - reading the footnotes help

https://perldoc.perl.org/perlop#%5B1%5D

update

and activating warnings shows the bug, somehow the blank is not recognized.

DB<65> use warnings; "\x{ 263A }" + Non-hex character ' ' terminates \x early. Resolved as "\x{00}" at (e +val

update

different warnings by version ... this is getting weirder and weirder

could someone please test this on linux?