Skip to content
provides a CGI-like interface for making rss feeds http://search.cpan.org/perldoc?CGI::RSS
Perl Perl6
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
t
.gitignore
Changes
MANIFEST
MANIFEST.SKIP
Makefile.PL
README
RSS.pm
RSS.pod
example.xml

README

use strict;
use CGI::RSS;

my $rss = new CGI::RSS;

print $rss->header;
print $rss->begin_rss(
    title => "My Feed!",
    link  => "http://localhost/directory",
    desc  => "My feed is cool!");

while( my $h = $sth->fetchrow_hashref ) {
    print $rss->item(
        $rss->title       ( $h->{title} ),
        $rss->link        ( $h->{link}  ),
        $rss->description ( $h->{desc}  ),
        $rss->date        ( $h->{date}  ),
    );
}

print $rss->finish_rss;
Something went wrong with that request. Please try again.