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.
Back to
Seekers of Perl Wisdom