Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Your Mother (Archbishop)
on Oct 06, 2014 at 20:13 UTC ( [id://1103008]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found