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»