Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: What are these hex character classes?

by three18ti (Scribe)
on Dec 08, 2013 at 01:35 UTC ( #1066170=note: print w/replies, xml ) Need Help??

in reply to Re: What are these hex character classes?
in thread [Solved] What are these hex character classes?

This is great. Thank you!

So like most things in computing, the zeros are omitted, so \x{A} is actually \x{000A}.

  • Comment on Re^2: What are these hex character classes?

Replies are listed 'Best First'.
Re^3: What are these hex character classes?
by Kenosis (Priest) on Dec 08, 2013 at 03:14 UTC

    You're most welcome, three18ti!

    Perl expectedly parses both as "\n" (the leading zeros aren't significant):

    perl -MO=Deparse,-p -e 'print "\x{A}"'


    print("\n"); -e syntax OK


    use warnings; use strict; print ord "\x{A}" if "\x{000A}" eq "\n";



    As you see, \x{A}, \x{000A} and \n all represent the same character.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066170]
[choroba]: How is Bembel different from Krug?
[hippo]: karlgoethebier, Ich habe kein Deutsch.
[Corion]: choroba: A Bembel is a traditional pottery ware, which is only(!) used for serving Cider (well, Apfelwein)
[shmem]: choroba: it's hessisch
[Corion]: Not every Krug is a Bembel!
[karlgoethebier]: there is just the mug: 🍺
[Corion]: A Bembel must look like this
[karlgoethebier]: https://de. wiki/Bembel#/ media/File: Bembel_Zum_blauen_ Bock_1978.jpg
[choroba]: as my friend says, Ich stehe Deutsche ver nicht aber klein ;-)
[Corion]: Krug is generic pottery ware for pouring beverages, but a Bembel is painted with that blue paint and contains only (!) Apfelwein

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2017-05-24 08:48 GMT
Find Nodes?
    Voting Booth?