Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: Extracting Bit Fields (Again)by BrowserUk (Patriarch) |
on Jan 02, 2012 at 07:10 UTC ( [id://945845]=note: print w/replies, xml ) | Need Help?? |
we should have 00 for x2 No. I did mention "Use 'xn' in the template to skip over bits you aren't interested in. ". See also pack. The output in hex should be 0 0 3 56 79A2 So skipping the first field, and converting your expectations to decimal, the output should be:
Which it wasn't, but will be now I've updated the code above! Thank you for bringing my mistake to my attention. :) With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|