Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Comparison by position and value

by sgifford (Prior)
on Jan 04, 2005 at 08:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://419179]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-28 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found