more useful options | |
PerlMonks |
Reading Binaryby BoulderBuff64 (Novice) |
on Jun 15, 2011 at 15:55 UTC ( [id://909797]=perlquestion: print w/replies, xml ) | 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. Please advise, Thanks!
Back to
Seekers of Perl Wisdom
|
|