Hello,
I have a 36 bit Address string and I need to do the following in Perl:
If the 31st bit of the Address = 1, make it '0'.
So if the Address = 0x000000019, make it Address_new = 0x9
Any idea what is the best way to do this in Perl?
I tried changing the address from decimal to binary and concatenating with zero and then in a loop, search for the 31st bit and make it zero. Somehow it is not working properly.