in reply to Number size equal to one byte

You might find my Tie::IntegerArray module useful. With it you could do:

use Tie::IntegerArray; tie my @array, 'Tie::IntegerArray', bits => 8, signed => 0; @array = (10 .. 100);

This will result in @array containing 90 integers each taking up only 8 bits. Actually, for your example you can get away with just 7 bits which might save some memory for very large sized arrays.

Tie::IntegerArray is just a convenient wrapper around the fantastic Bit::Vector module. You could get similar functionality with a little more effort directly from that module.

-sam