title => 'My Channel',
link => 'http://my.url.com',
description => 'My RSS Feed.'
title => 'My item #1',
link => 'http://my.item.com#1',
description => 'My first news item.'
title => 'My item #2',
link => 'http://my.item.com#2',
description => 'My second news item.'
# save rss
$rss->save( '/usr/local/apache/htdocs/myfeed.xml' );
Perhaps you use XML::RSS to generate RSS for consumption by RSS parsers. Perhaps you also get requests for how to use the RSS feed by people who have no idea how to parse XML, or write Perl programs for that matter.
<link rel="stylesheet" type="text/css" href="/css/rollover1.css">
Your content here...
# save all the content
# no more than 10 items:
# save all items without descriptions:
my $xml = get( 'http://slashdot.org/slashdot.rss' );
$rss->parse( $xml );
Brian Cassidy <email@example.com>
Ed Summers <firstname.lastname@example.org>
Copyright 2003 by Brian Cassidy and Ed Summers
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.