RE: getting an intersection between two arrays....

2002-09-05 Thread Bob Showalter
> -Original Message- > From: david [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 05, 2002 1:07 PM > To: [EMAIL PROTECTED] > Subject: Re: getting an intersection between two arrays > > > sounds like you want to remove all @banned from @hrefs right? &g

Re: getting an intersection between two arrays....

2002-09-05 Thread david
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 "

Re: getting an intersection between two arrays....

2002-09-05 Thread Dharmendra Rai
could you please mail an example so that your query become clearer. do you have any criteria for distinguishing between the bad and good ones. if yes, then use that to get the "bad elements" from href . well your example can make the question clearer.

Re: getting an intersection between two arrays....

2002-09-05 Thread Sudarshan Raghavan
On Wed, 4 Sep 2002, 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. This is a faq, perldoc -q intersection > > How would i do this? > > > __

getting an intersection between two arrays....

2002-09-05 Thread Anthony E.
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