fuzzball has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (arrays)
I need to take a array of URL's in @A, compare it to a array of "banned" domain names in @B,
and either remove matches from @A, or put non-matches into a new array, @C.
Given example data:
@A (or @C) should end up with only 'altavista.com'. Clearly, it is has to match with patterns, not just exact string equality.@A = ( 'yahoo.com', 'altavista.com', 'yahoo.com/index.html' ); @B = ( 'yahoo.com', 'webcrawler.com' );
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How Do I Compare Array A to Array B, removing B elements from A.⭐
by merlyn (Sage) on Mar 21, 2002 at 21:03 UTC | |
by amitbhosale (Acolyte) on Apr 09, 2008 at 07:39 UTC | |
Re: How Do I Compare Array A to Array B, removing B elements from A.⭐
by dragonchild (Archbishop) on Mar 21, 2002 at 20:15 UTC | |
Re: How Do I Compare Array A to Array B, removing B elements from A.
by SavannahLion (Pilgrim) on Jan 16, 2006 at 15:48 UTC | |
Re: How Do I Compare Array A to Array B, removing B elements from A.
by knobunc (Pilgrim) on Mar 21, 2002 at 21:06 UTC |
Back to
Seekers of Perl Wisdom