in reply to Re^4: Sort undef
in thread Sort undef
Perl strings are sequences of Unicode code points, not sequences of bytes. (Well, I think they're stored internally as plain bytes if possible.)
Output:use Encode qw( encode_utf8 ); my $x = chr(1 << 63); print length($x), "\n"; print length(encode_utf8($x)), "\n"; print "yep\n" if $x gt chr(255);
Use of code point 0x8000000000000000 is deprecated; the permissible ma +x is 0x7FFFFFFFFFFFFFFF at foo line 2. 1 13 yep
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Sort undef
by marinersk (Priest) on Aug 15, 2017 at 10:48 UTC |
In Section
Seekers of Perl Wisdom