Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by kcott (Archbishop)
on Jun 10, 2022 at 21:13 UTC ( [id://11144675]=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 }"

'I searched for "version" ...'

On the basis that version notes often look like "introduced in 5.nn", I searched for "34": 8 instances found; none relate to this issue.

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

I believe that was intended to contrast with the previous line (\x{263A} vs. \x{ 263A }). Depending on device, browser and font, the difference between \x{263A} and \x{ 263A } may not be all that obvious.

Regardless, a ninth note (e.g. [9] Introduced in v5.34.0.) would add clarity.

— Ken

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:19 UTC
    > often look like "introduced in 5.nn", I searched for "34"

    None of my hits for "34" had to do with versions.

    But I searched for "5." leading to 40 hits, only 2 were not referring to version diffs.

    So yes, perldoc normally lists such differences.

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

Re^4: Problem with escape sequence \x for hex with spaces "\x{ 263A }"
by LanX (Saint) on Jun 10, 2022 at 21:56 UTC
    > Regardless, a ninth note (e.g. 9 Introduced in v5.34.0.) would add clarity.

    Normally I'd say a footnote is overkill, but since there is that note

    Note that any escape sequence using braces inside interpolated constructs may have optional blanks (tab or space characters) adjoining with and inside of the braces, as illustrated above by the second \x{ } example.

    every "escape sequence using braces" should better have this as footnote plus "(since v5.34.0)"

    On a side note, this seems to be in analogy how identifiers inside braces are handled

    DB<70> $a = 42 + + + DB<71> p ${ a } + 42 + DB<72> p ${ a } + 42 + DB<73> p "${ a }" + 42 + DB<74>

    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://11144675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found