fayland has asked for the wisdom of the Perl Monks concerning the following question:
my $rss = XML::Feed->new('RSS');
$rss->title( $title );
$rss->link( $site_prefix );
$rss->description($description);
my $atom = XML::Feed->new('Atom');
$atom->title( $title );
$atom->link( $site_prefix );
$atom->description($description);
is there an easy way to simplify this?
many thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I write both RSS and Atom
by Fletch (Bishop) on Dec 12, 2005 at 13:54 UTC | |
by fayland (Acolyte) on Dec 12, 2005 at 15:30 UTC | |
by marto (Cardinal) on Dec 12, 2005 at 16:11 UTC | |
by fayland (Acolyte) on Dec 13, 2005 at 03:07 UTC |