webmaster
Wed, 02 Aug 2000 06:11:52 -0700
Hi, The advantage of publicly declaring that you don't know something is that it gives you an ability to ask for help without having to worry about your ego getting bruised. So here goes. Can anybody explain to me what I should have done? Ade -----Original Message----- From: David Coppit [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 01, 2000 2:53 PM To: webmaster nigeria.com Cc: [EMAIL PROTECTED] Subject: Re: Help Help Help On Tue, 1 Aug 2000, webmaster nigeria.com wrote: > <!--newsclipper > <input name=cybereaglesnews> > <filter name=limit number=30> > <output name=array numcols=1> > --> This one works, right? > <!--newsclipper > <input name=cybereaglesnews> > <filter name=map filter=hash2string > format='<a target="newswindow" > href="http://www.nigeria.com/cgi-bin/FrameIt.cgi?Url=%{url}&FooterSize=73&Fo > oterUrl=http://www.nigeria.com/footer.html">%{headline}</a>'> > <filter name=limit number=30> > <output name=array numcols=1> > --> Does cybereaglesnews return an array of hashes? If it doesn't, then hash2string isn't going to work > # This function is used to get the raw data from the URL. > sub Get > { > my $self = shift; > my $attributes = shift; > > my $startPattern = 'Latest Headlines'; > my $endPattern = '</table>'; > > my $url = $self->ComputeURL($attributes); > > my $data = GetLinks($url,$startPattern,$endPattern); > return undef unless defined $data; > > return $data; > } According to your Get routine, the handler returns an array of links to articles. You need to do some additional processing if you want to return an array of hashes containing the URLs and headlines. 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 newsclipperdevlist YOUR_EMAIL_ADDRESS" (without the quotes) or use the form provided at http://www.NewsClipper.com/TechSup.htm#MailingList. - If you would like to unsubscribe from this mailing list send an email to [EMAIL PROTECTED] with the body "unsubscribe newsclipperdevlist YOUR_EMAIL_ADDRESS" (without the quotes) or use the form provided at http://www.NewsClipper.com/TechSup.htm#MailingList.