in reply to Help displaying binary data bit-by-bit in binary notation
Have you tried the pack function (and its counterpart unpack)? If I understood your question correctly, that might be what you're looking for. Here's a quick example:
This prints unpack b = [10000110].use strict; use warnings; my $string = 'a'; print 'unpack b = [', unpack( "b*", $string ), "]\n";
If you want something else, please be more specific.
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help displaying binary data bit-by-bit in binary notation
by unixhome (Novice) on Jun 15, 2006 at 03:00 UTC | |
by bobf (Monsignor) on Jun 15, 2006 at 03:07 UTC | |
by ikegami (Patriarch) on Jun 15, 2006 at 03:12 UTC | |
by japhy (Canon) on Jun 15, 2006 at 03:20 UTC | |
by ikegami (Patriarch) on Jun 15, 2006 at 06:10 UTC |