#Prints in binary with lowest bit to the right side. sub p { printf "%20s : %4d => %08b\n", shift, $val, $val; } [download]
In reply to Re^2: Bitwise operations by toolic in thread Bitwise operations by bangor