in reply to Filtering one array using another array

You mean that a site is blacklisted, if one of the elements of @blacklist matches against the url? In that case, I'd make a single regex out of @blacklist. Something like (untested):
my $re = join"|" => map {"(?:$_)"} @blacklist; my @blacklisted = grep {/$re/} @sites;

Abigail

Replies are listed 'Best First'.
Re: Re: Filtering one array using another array
by teabag (Pilgrim) on Sep 04, 2003 at 13:34 UTC
    Excellent Abigail-II!
    That works perfectly for me, thanks!

    Teabag
    Sure there's more than one way, but one just needs one anyway - Teabag