Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Capture a non-printable char and test what it is

by kcott (Archbishop)
on May 25, 2022 at 06:34 UTC ( [id://11144176]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Capture a non-printable char and test what it is
in thread Capture a non-printable char and test what it is

I generally agree with everything you've written there; however, as a minor nitpick, those skin tone modifiers can be printed in isolation. I'm not sure how this will render on different browsers, but on my terminal:

$ perl -C -E '
    say for
        "\N{U+1F3FB}",
        "\N{U+1F3FC}",
        "\N{U+1F3FD}",
        "\N{U+1F3FE}",
        "\N{U+1F3FF}"
'
🏻
🏼
🏽
🏾
🏿

And, in a preview, that looks fine on my Firefox v100.0.2 — YMMV.

— Ken

Replies are listed 'Best First'.
Re^5: Capture a non-printable char and test what it is
by cavac (Parson) on May 25, 2022 at 08:13 UTC

    You are right, those are printable when used standalone. Which makes them sometimes-printable-characters. Great, another exception that has to be handled when working with text.

    You are in the hallways of the text processing convention. To the sout +h, you see someone selling T-Shirts, to the north is the building exit. The entrance to the lecture hall is to the west. > complain about unicode cavac raises his fist to the gods and shouts "UNICODE!!!". Höðr shoots + cavac in the buttocks with a mistletoe arrow.

    perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found