in reply to Re: Bitwise Operator Error
in thread Bitwise Operator Error

That's wrong.

>perl -we"print 0+'0x0001'" Argument "0x0001" isn't numeric in addition (+) at -e line 1. 0

See my reply to the OP for details