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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Reading Binary
by duelafn (Parson) on Jun 15, 2011 at 16:30 UTC | |
by BoulderBuff64 (Novice) on Jun 20, 2011 at 22:19 UTC | |
Re: Reading Binary
by toolic (Bishop) on Jun 15, 2011 at 16:18 UTC | |
by oxone (Friar) on Jun 15, 2011 at 16:21 UTC | |
Re: Reading Binary
by oxone (Friar) on Jun 15, 2011 at 16:18 UTC | |
Re: Reading Binary
by TomDLux (Vicar) on Jun 15, 2011 at 16:38 UTC | |
by jwkrahn (Abbot) on Jun 15, 2011 at 20:47 UTC | |
Re: Reading Binary
by AnomalousMonk (Archbishop) on Jun 15, 2011 at 20:35 UTC | |
Re: Reading Binary
by Marshall (Canon) on Jun 16, 2011 at 09:05 UTC |
Back to
Seekers of Perl Wisdom