Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Comparison by position and value

by sgifford (Prior)
on Jan 04, 2005 at 08:39 UTC ( #419179=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($a & $b_mask) eq ($b & $a_mask)
    
  2. or download this
      #    a   and mask[b]  eq      b   and mask[a]
      ($_[0][1] & $_[1][2]) eq ($_[1][1] & $_[0][2]);
    
  3. or download this
    Benchmark: timing 25000 iterations of cclever3, clever2, clever3, csim
    +ple3, simple3...
      cclever3:  1 wallclock secs ( 0.95 usr +  0.00 sys =  0.95 CPU) 
    ...
                 @ 24271.84/s (n=25000)
       simple3:  5 wallclock secs ( 3.97 usr +  0.01 sys =  3.98 CPU) 
                 @ 6281.41/s (n=25000)
    
  4. or download this
    #!/usr/bin/perl
    
    ...
      }
      return 1;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2020-10-21 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (212 votes). Check out past polls.

    Notices?