my %feeds; for my $type ( qw( RSS Atom ) ) { my $feed = XML::Feed->new( $type ); $feed->title( $title ); $feed->link( $site_prefix ); $feed->description( $description ); $feeds{ $type } = $feed; }
Update: Fixed case typo (ATOM to Atom).
In reply to Re: How can I write both RSS and Atom
by Fletch
in thread How can I write both RSS and Atom
by fayland
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |