Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Logical operations on arrays

by MidLifeXis (Monsignor)
on Oct 04, 2012 at 12:21 UTC ( #997227=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @hash1{@array1} = (1)x@array1
    
  2. or download this
    push( @intersection, grep { $hash1{$_} } @array2 );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2016-08-25 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (361 votes). Check out past polls.