Perl Bit Vectors 

vec($row, 323, 1) = 0;
vec($row, 20, 1) = 1;
vec($row, 81 + (3 - 1) * 9 + 5 - 1, 1) = 1;
print unpack("b*", $row), "\n";