Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: bit string

by Zaxo (Archbishop)
on Jul 24, 2001 at 07:06 UTC ( #99225=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e '$c = 12;print reverse map {vec $c,$_,1}  0..8*length($c)-1;
    +'
    0011001000110001
    
  2. or download this
    $ perl -e '$c = 12;print reverse map {$c&1<<$_?1:0}  0..8;'
    000001100
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2023-06-10 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (38 votes). Check out past polls.

    Notices?