#!/usr/bin/perl use XML::Feed; use strict; use warnings; my $feed = XML::Feed->parse(\*DATA) or die XML::Feed->errstr; print $feed->title, "\n"; for my $entry ($feed->entries) { print "T=", $entry->title, "\n"; print "\tM=", $entry->modified||$entry->issued, "\n"; } exit(0); __DATA__ <![CDATA[ foo bar one ]]> https://example.org/rss2.xml en foo bar 120 <![CDATA[ Foo Bar Two ]]> https://www.example.org/

words words words

]]>
2019-09-10 13:38:00 https://example.org/ foo bar three