Perl: the Markov chain saw | |
PerlMonks |
Problem with escape sequence \x for hex with spaces "\x{ 263A }"by LanX (Saint) |
on Jun 10, 2022 at 20:00 UTC ( [id://11144667]=perlquestion: print w/replies, xml ) | Need Help?? |
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
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
update°) OK - ironically - reading the footnotes help https://perldoc.perl.org/perlop#%5B1%5D
[1] The result is the character specified by the hexadecimal number between the braces. See "8" below for details on which character. Blanks (tab or space characters) may separate the number from either or both of the braces. Otherwise, only hexadecimal digits are valid between the braces. If an invalid character is encountered, a warning will be issued and the invalid character and all subsequent characters (valid or invalid) within the braces will be discarded. If there are no valid digits between the braces, the generated character is the NULL character (\x{00}). However, an explicit empty brace (\x{}) will not cause a warning (currently).
updateand activating warnings shows the bug, somehow the blank is not recognized.
updatedifferent warnings by version ... this is getting weirder and weirder
Back to
Seekers of Perl Wisdom
|
|