in reply to Bitwise Operator Error
$testString =~ s/\s+//g;
$testString =~ s/^/0x/; $maskResult = $testString & 400000000000000000000000;
Updated: Need to use hex and need to have mask as hex string.
Updated 2: I see ikegami has also pointed out my error(s) corrected above.
Updated 3: and ikegami has also noted the need for Math::BigInt here.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Bitwise Operator Error
by ikegami (Patriarch) on Oct 02, 2008 at 19:18 UTC | |
Re^2: Bitwise Operator Error
by ravishi (Acolyte) on Oct 02, 2008 at 19:05 UTC |