|The stupid question is the question not asked|
Reading Binaryby BoulderBuff64 (Novice)
|on Jun 15, 2011 at 15:55 UTC||Need Help??|
BoulderBuff64 has asked for the
wisdom of the Perl Monks concerning the following question:
Oh Wise and Mighty Perl Monks,
Bit of a n00b here.
I have a binary input and would like to use that input to reference a block of information. A mock example: 1111 = ABCD. If given 0101 it would return B, D. If given 1001 it would return A, D.
I thought I could have the script go bit by bit: x1xx => print B. But I don't know the best way to do that.