# New Ticket Created by Aaron Sherman # Please include the string: [perl #128706] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128706 >
I have a name in a scalar of a unicode codepoint. I want to get the codepoint number or character. It looks like there's no way to do that other than eval: $ perl6 -e 'my $name = "COMMA"; say "qq\{\\c[$name]}".EVAL' , >From IRC: [14:51] <AlexDaniel> what a good question [14:51] <timotimo> i exposed the nqp op for the lookup i think [14:52] <timotimo> but i didnt want to decide on the p6 function name [14:52] <AlexDaniel> harmil: rakudobug it [14:53] <harmil> okay [14:53] <AlexDaniel> m: say “\c[PILE OF POO]”.uniname [14:53] <evalable> AlexDaniel: |«HEAD»: PILE OF POO [14:54] == autarch [~auta...@173-11-48-49-minnesota.hfc.comcastbusiness.net] has joined #perl6 [14:55] <timotimo> codepointffromname [14:55] <timotimo> is the name of tge nqp op [14:55] <timotimo> one less f Version info: $ perl6 -v This is Rakudo version 2016.07.1-34-ge5c909c built on MoarVM version 2016.07-3-gc01472d implementing Perl 6.c. -- Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, developer, gamer and life-long student.