Use XML::RSS installed locally within your home directory. Here is an example:
#!/usr/bin/perl use strict; use warnings; use XML::RSS; use lib './path/to/home/dir/perl/libs'; # optionally download via a url # or slurp in a file use LWP::Simple; my $url = "http://someurl/file.rss"; my $document = get($url); my $rss = new XML::RSS(Style => 'Debug'); $rss->parse($document); foreach my $item (@{$rss->{'items'}}) { print "<a href=\"$item->{link}\">$item->{title}</a>\n"; }
In reply to Re: Perl program for displaying RSS feed?
by crouchingpenguin
in thread Perl program for displaying RSS feed?
by Alatar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |