App-PFT
view release on metacpan or search on metacpan
bin/pft-gen-rss view on Meta::CPAN
=cut
use strict;
use warnings;
use utf8;
use v5.16;
use Carp;
use Digest::MD5;
use HTML::Escape qw/escape_html/;
use PFT::Tree;
use POSIX qw/strftime/;
use Encode;
use Encode::Locale;
use File::Spec::Functions qw/catfile/;
use File::Path qw/make_path/;
use File::Basename qw/dirname/;
use Pod::Usage;
bin/pft-gen-rss view on Meta::CPAN
$digest->add($node->title);
$guid = $digest->hexdigest;
$digest->reset;
$pubDate = do {
my($y, $m, $d) = @{$node->date};
strftime("%a, %d %b %Y %H:%M:%S %z", 0, 0, 0, $d, $m, $y - 1900)
};
my $content = escape_html $node->html(\&node_to_href);
if ($first) {
$first = 0;
say "<lastBuildDate>$pubDate</lastBuildDate>"
}
say '<item>',
' <title>', $node->title, '</title>',
' <guid isPermaLink="false">', $guid, '</guid>',
( run in 0.863 second using v1.01-cache-2.11-cpan-c21f80fb71c )