in reply to Re^61: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly

I am referring to an ordered collection of 8 bits.

No you weren't. How can an ordered collection of 8-bits be "just stored differently"?

$_ = "\x80\x81"; # Value is bytes 80 81 utf8::upgrade($_); # Value is still bytes 80 81, # just stored differently.

Replies are listed 'Best First'.
Re^63: Interleaving bytes in a string quickly
by ikegami (Patriarch) on Mar 04, 2010 at 17:51 UTC

    Bits 1-0-0-0-0-0-0-0-1-0-0-0-0-0-0-1. How many examples do you want? Here are three for the first byte:

    $byte = 0x80; $byte = "\x80"; @byte = (1,0,0,0,0,0,0,0);

    (They respectively take 16, 36 and 128 bytes to store that one byte.)

      128 bytes to store ... one byte Que?

      Calling a bull a cow, doesn't make it a cow.

      Nor make it's product any more palatable