in reply to Re: Displaying bit-vectors with Most Significant Bits to the left?
in thread Displaying bit-vectors with Most Significant Bits to the left?
You posted untested code in a fake demo.
So clever!
DB<315> undef $m1; vec($m1,$_,1)=1 for 0,2,8,9,10 DB<316> x unpack 'b16',$m1 0 1010000011100000 DB<317> p reverse unpack 'b16',$m1 1010000011100000 DB<318> p scalar reverse unpack 'b16',$m1 0000011100000101 DB<319>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Displaying bit-vectors with Most Significant Bits to the left?
by shmem (Chancellor) on Jan 05, 2020 at 17:11 UTC | |
by LanX (Saint) on Jan 05, 2020 at 17:14 UTC | |
by shmem (Chancellor) on Jan 05, 2020 at 17:28 UTC | |
by AnomalousMonk (Archbishop) on Jan 05, 2020 at 18:39 UTC |