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