Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Removing elemets from an array

by Lotus1 (Chaplain)
on Dec 28, 2012 at 16:43 UTC ( #1010718=note: print w/ replies, xml ) Need Help??


in reply to Removing elemets from an array

#!/usr/bin/perl use warnings; use strict; use List::Compare; my @arca = qw( 625 645 ); my @arcb = qw( 450 625 720 645 ); print "arcb: @arcb\n"; my $lc = List::Compare->new( \@arca, \@arcb); # get the items which appear only in the second list. @arcb = $lc->get_Ronly; print "arcb: @arcb\n";


Comment on Re: Removing elemets from an array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-08-23 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (169 votes), past polls