On Thu, 22 Jun 2000, Vikas Gupta wrote:

> I believe that I have sucessfully Installed NewsClipper Version 1.20-os. But 
> it seems as if the grep filter is not working. I am basically trying to 
> filter out images. Limit is working, grep(inverted) is not. Below is the 
> newsclipper segment of my page, as well as a list of perl module versions 
> installed:
> 
> <!--newsclipper
>   <input name=test>
>   <filter name=limit number=10>
>   <filter name=grep words="gif" invert>
>   <filter name=grep words="jpg" invert>
>   <output name=array>
> -->

Can you send the output of these:
NewsClipper -e 'test,limit number=10,dumpdata'
NewsClipper -e 'test,limit number=10,grep words="gif" invert,dumpdata'
NewsClipper -e 'test,limit number=10,grep words="gif" invert, \
  grep words="jpg" invert,dumpdata'

Also, if your test handler should never return an image, then I recommend
stripping out images from inside the test handler, using something like:

  @$data = grep { $$_ !~ /(gif|jpg)/i } @$data;

Lastly, you should do your limit after the greps, since the greps may remove
everything from the 10 remaining items...

Thanks,
David

____________________________________________________________________________
David Coppit <[EMAIL PROTECTED]>        President, Spinnaker Software
http://www.newsclipper.com/ -- Snip and ship dynamic content to your website



-
If you would like to unsubscribe from this mailing list send an email to 
[EMAIL PROTECTED] with the body "unsubscribe newsclipperlist 
YOUR_EMAIL_ADDRESS" (without the quotes) or use the form provided at 
http://www.NewsClipper.com/TechSup.htm#MailingList.

Reply via email to