in reply to Number size equal to one byte
1.any ideas how to represent the above numbers as one byte.
$number10 = pack('C', 10); # ... $number100 = pack('C', 100);
eg. pack a C char, it's one byte (plus the perl variable overhead itself in memory, as Abigail-II points out).
2. IF number 1 is possible-is there a specific way to measure the size of the number
cheers,$size = length($number100);
__END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;
|
|---|