in reply to Re^56: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly
This because the values in the perl string are multi-bytes characters.
No, the values in the string are bytes 0x80 and 0x81 for all the cases.
$_ = 12; # Value is 12, the number of months in a year. print "$_\n"; # Value is still 12, the number of months in a year, # just stored differently.
$_ = "\x80\x81"; # Value is bytes 80 81 utf8::upgrade($_); # Value is still bytes 80 81, # just stored differently. print(length($_), "\n"); # 2
And all it took was 57 levels of exchanges for you to get around to admitting it.
Admit what? That some strings of bytes can be stored using multiple bytes? That was my point from the very beginning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^58: Interleaving bytes in a string quickly
by Anonymous Monk on Mar 04, 2010 at 07:00 UTC | |
|
Re^58: Interleaving bytes in a string quickly
by Anonymous Monk on Mar 04, 2010 at 07:49 UTC | |
by ikegami (Patriarch) on Mar 04, 2010 at 15:04 UTC | |
by Anonymous Monk on Mar 04, 2010 at 17:15 UTC | |
by ikegami (Patriarch) on Mar 04, 2010 at 17:19 UTC | |
by Anonymous Monk on Mar 04, 2010 at 17:33 UTC | |
| |
by IBlowGoatsSucker (Beadle) on Mar 04, 2010 at 17:59 UTC | |
|