Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2023-12-11 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?