- or download this
for my $i (0..20) {
vec( $bitstring, $offset++, 4 ) = $i ;
}
- or download this
my $bits = unpack("A4*", $bitstring);
- or download this
print unpack("b*",$bitstring);
- or download this
0000100001001100001010
1001101110000110010101
1101001110110111111100
0010000100110000100000
- or download this
print unpack("h*",$bitstring);
- or download this
0123456789abcdef012340