hello all,

i have a hex value which needs to be checked if a particular bit is
set in that string.
for example, i need to check if 12th bit is set.

i tried doing mask(0x1000) with my input value i receive, so that only
if 12th bit is 1, will the answer be one....but can i do a direct
comparison as in

 $mp = $inputhexval & 0x1000;

i m a starter, so i dont know the nuances with perl?

pls help
regards
venkat


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to