New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unival
ignores everything but first chars
#6569
Comments
From @zoffixznetPerhaps it should throw when it was given trailing stuff after the relevant char? 00:49 dpk m: say unival("1\x[300]23") |
From @zoffixznetuniname seems to have the same behaviour: <Zoffix__> m: say uniname 'meows' |
From @smlsOn Tue, 03 Oct 2017 17:52:39 -0700, cpan@zoffix.com wrote:
I assume it's modeled after `ord`, which also does this: ➜ say "Hello".ord; # 72 ...which in turn probably does it because its Perl 5 version always did it: $ perl -E 'say ord "Hello" Whether this is really the best thing to do, or if a warning/error would be better, I don't know. Note that Perl 6 also has plural versions of all three of these though, which give the result for every character in the string: ➜ .say for "123".ords; ➜ .say for "123".uninames; ➜ .say for "123".univals; |
The RT System itself - Status changed from 'new' to 'open' |
From @samcvAs has been pointed out, it only uses the first grapheme to look up the value similar to uniname, ord and such this isn't a bug but is expected functionality. Doing anything differently would break existing code. Going to close this as rejected. |
@samcv - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#132217 (status was 'rejected')
Searchable as RT132217$
The text was updated successfully, but these errors were encountered: