Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Ultra compact set searching

by radiantmatrix (Parson)
on Nov 22, 2006 at 17:57 UTC ( [id://585575]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub multi_and {
       my $result = shift;
       while (@_) { $result &= shift; }
       $result;
    }
    
  2. or download this
    my $results1 = multi_and(1,2,3);             # 3 args
    my $results2 = multi_and(5,6,7);             # 3 args
    my $results3 = multi_and(12,13,14,15,16);    # 5 args
    
  3. or download this
    sub multi_and {
      my $result = shift;
      for (@_) { $result &= $_ }
      $result
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-19 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found