in reply to Re: Making two 8-bit numbers from indices of set bits
in thread Making two 8-bit numbers from indices of set bits

The subject is about anything that works with bit fields. Many microcontrollers for instance will use bit fields for various statuses. On the Perl side these have to be packed in binary format and then sent (TCP, serial port, etc...) to the microcontroller.

In the PC world we do not care anymore about these things since we have so much RAM. We could use 32 32-bit variables to represent 32 booleans and who would complain ? ;-)

As for info on the subject, I guess you have to have a need to do such operations in the first place. If you want to only experiment and have fun while doing it, you can use a POE TCP server and client and exchange data using the way described here.

  • Comment on Re^2: Making two 8-bit numbers from indices of set bits