in reply to Re(golf): I'm looking for the faster way to convert char 2 Bin and Bin 2 char (8bits)
in thread I'm looking for the faster way to convert char 2 Bin and Bin 2 char (8bits)
is even better. Andmy $i = 1; (push @num, (($num & $i) ? 1 : 0)) and $i<<=1 until $i > $num;
|
|---|