Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Run length encode a bit vector

by AnomalousMonk (Archbishop)
on Jan 05, 2012 at 14:04 UTC ( [id://946402]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "my $bits = unpack 'b*', pack 'N*', 0x01020304, 0x11121314;
    ...
    '1000000001000000110000000010000010001000010010001100100000101000'
    '-1,8,-1,6,-2,8,-1,5,-1,3,-1,4,-1,2,-1,3,-2,2,-1,5,-1,1,-1,3,'
    -1 8 -1 6 -2 8 -1 5 -1 3 -1 4 -1 2 -1 3 -2 2 -1 5 -1 1 -1 3
    
  2. or download this
    >perl -wMstrict -le
    "my $bits = unpack 'b*', pack 'N*', 0x01020304, 0x11121314;
    ...
    "
    '1000000001000000110000000010000010001000010010001100100000101000'
    -1 8 -1 6 -2 8 -1 5 -1 3 -1 4 -1 2 -1 3 -2 2 -1 5 -1 1 -1 3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://946402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found