Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Problem with escape sequence \x for hex with spaces "\x{ 263A }"

by pryrt (Abbot)
on Jun 10, 2022 at 21:01 UTC ( [id://11144671]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Problem with escape sequence \x for hex with spaces "\x{ 263A }"
in thread Problem with escape sequence \x for hex with spaces "\x{ 263A }"

shouldn't it rather be "ignores" or "tolerates" whitespace?

My suggested phrasing would be on "but allows° optional blanks between the braces and the hex value"

(And whether I said "blanks" or "spaces" or "horizontal whitespace" or "whitespace" would probably depend on whether tests show that it allows only space, or any horizontal space, or any horizontal or vertical space. Like you, I only have Strawberry so limited to 5.32 and cannot test the feature.)

update: °: Rereading the original, I think they intended that sentence to mean the equivalent of "This second example of the syntax means the same as the example above, but shows the optional blanks that are allowed..."

  • Comment on Re^3: Problem with escape sequence \x for hex with spaces "\x{ 263A }"

Replies are listed 'Best First'.
Re^4: Problem with escape sequence \x for hex with spaces "\x{ 263A }"
by LanX (Saint) on Jun 10, 2022 at 21:05 UTC
    The footnote defines "blanks" as tab or space, so "\n" shouldn't be allowed.

    Blanks (tab or space characters) may separate the number from either or both of the braces.

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

      The footnote defines "blanks"

      And you even quoted that footnote already, so in theory, I should have read it. It's apparently too late on a Friday for my brain. ;-)

Re^4: Problem with escape sequence \x for hex with spaces "\x{ 263A }"
by LanX (Saint) on Jun 10, 2022 at 21:11 UTC
    > update: °: Rereading the original, I think they intended that sentence to mean the equivalent of "This second example of the syntax means the same as the example above, but shows the optional blanks that are allowed..."

    yes, that's what I'm thinking too.

    They probably copy/pasted it from some p5p-discussions or feature requests, and the context got lost.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-24 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found