Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: fast bit twiddling

by dani_l (Initiate)
on May 04, 2004 at 05:35 UTC ( #350231=note: print w/ replies, xml ) Need Help??


in reply to Re: fast bit twiddling
in thread fast bit twiddling

Refinement of emazep's:

sub dani_l { my $s = shift; substr($s, $_ - 1, 2) =~ tr/1// == 1 or return 0 for @_; return 1; }


Comment on Re: Re: fast bit twiddling
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-07-06 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls