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

Re: How do I get an array which is the logical AND of the elements of two other arrays?

by ayrnieu (Beadle)
on Feb 25, 2006 at 23:00 UTC ( [id://532817]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @A = [ '1', '2', '4', '8' ];
    my @B = [ '1', '3', '6', '8' ];
    
  2. or download this
    my @a = qw/1 2 4 8/;
    my $a = [qw/1 2 4 8/];  # an arrayref
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found