Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Difference between two arrays - is there a better way?

by bart (Canon)
on Aug 09, 2011 at 11:11 UTC ( #919451=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %presence;
    my $b = 1;
    ...
    } continue {
        $b *= 2;
    }
    
  2. or download this
    @list1only = grep { $presence{$_} == 1 } keys %presence;
    @list2only = grep { $presence{$_} == 2 } keys %presence;
    ...
    @lists1and2only = grep { $presence{$_} == 1+2 } keys %presence;
    @inall = grep { $presence{$_} == 1+2+4 } keys %presence;
    # etc
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2019-10-22 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?