Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Efficient bit counting with a twist.

by BrowserUk (Pope)
on Jan 27, 2013 at 06:22 UTC ( #1015564=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## $p = position
    my $c = 0; vec( $v, $_, 1 ) and ++$c for 0 .. $p - 1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1015564]
Approved by davido
Front-paged by ww
help
Chatterbox?
[Corion]: ambrus: yeah, but the longer I think about it the more I come to the conclusion that you shouldn't try to mix threads and fork anyway :)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2017-10-19 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?