Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: utf8 hash keys revisited: How can i use musical symbols as hash keys?

by kennethk (Abbot)
on Oct 06, 2014 at 20:06 UTC ( [id://1103005]=note: print w/replies, xml ) Need Help??


in reply to utf8 hash keys revisited: How can i use musical symbols as hash keys?

"a\x{266F}/b\x{266D}" is equivalent to "a♯/b♭". You should see your expected result if you print join "\n", keys %helmholtz_to_midi. Data::Dump outputs in an escaped form, just in case.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: utf8 hash keys revisited: How can i use musical symbols as hash keys?
by karlgoethebier (Abbot) on Oct 07, 2014 at 07:18 UTC

    Thank you kennethk for advice. I jumped to the wrong conclusion ;-) It works as expected.

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1103005]
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: (6)
As of 2024-03-28 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found