sounds like you want to remove all @banned from @hrefs right?
if your arrays are small and you don't care using up a little memeory:

my @hrefs = (1..10);
my @banned = (3..6);

my %hash;
@hash{@a} = ();

delete @hash{@b}; #-- remove 3,4,5,6 from 1 to 10

foreach my $i (keys %hash){
        print "$i\n"; #-- prints 1,2,7,8,9,10
}

you will likely to lose the order of the original @hrefs as well.

Or you could manually loop throught the arrays and remove them manually

david

Anthony E. wrote:

> ie - i have two arrays (lists):
> 
> @hrefs: a list of urls..
> and @banned, and list of bad urls. I want to remove
> the @banned urls from @hrefs.
> 
> How would i do this?
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to