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

kennethk already answered, just chiming in with the name notation version because it makes inlining stuff more legible (than some approaches).

perl -CSD -Mcharnames=:full -le 'print "\N{MUSICAL SYMBOL GLISSANDO UP}a\N{MUSIC SHARP SIGN}"' 𝆱a♯

  • Comment on Re: utf8 hash keys revisited: How can i use musical symbols as hash keys?
  • Download Code

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 06, 2014 at 21:09 UTC

    Yes Your Mother, $sharp = qq(\N{MUSIC SHARP SIGN}); looks much more concise.

    Thank you very much for the hint and best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

Re^2: utf8 hash keys revisited: How can i use musical symbols as hash keys?
by ikegami (Patriarch) on Oct 08, 2014 at 02:19 UTC
    Don't even need use charnames ':full'; any more.