Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use LWP::Simple; use XML::RSS; use CGI; $|++; my $cgi = new CGI; print $cgi->header,$cgi->start_html('INFO PORTAL'); my $rss=new XML::RSS; my $FILE="/home/foo/slashdot.rdf"; mirror("http://slashdot.org/slashdot.rdf", $FILE); $rss->parsefile($FILE); my $item; for $item (@{$rss->{"items"}}) { print "<A HREF=\"$item->{link}\">$item->{title}</A><BR>"; } print "HERE NO PROBLEM!!<BR>"; print $cgi->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::RSS choking on the webserver
by Joost (Canon) on Jan 28, 2003 at 14:23 UTC | |
|
Re: XML::RSS choking on the webserver
by peregrine (Acolyte) on Jan 28, 2003 at 15:49 UTC |