Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Difference Quantity of two Arrays

by dorko (Prior)
on Jan 02, 2007 at 17:02 UTC ( [id://592586]=note: print w/replies, xml ) Need Help??


in reply to Re: Difference Quantity of two Arrays
in thread Difference Quantity of two Arrays

List::Compare works for this problem:

use strict; use warnings; use List::Compare; my @dbs = qw(fetch forward user smtp); my @skip_dbs = qw(user smtp); my $lc = List::Compare->new(\@dbs, \@skip_dbs); my @list = $lc->get_unique; print @list;

Cheers,

Brent

-- Yeah, I'm a Delt.

Log In?
Username:
Password:

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

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

    No recent polls found