GitHub-RSS
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
};
(my $example_file = $main_file) =~ s!\.pm$!/Examples.pm!;
my $examples = `$perl -w examples/gen_examples_pod.pl`;
if ($examples) {
warn "(Re)Creating $example_file\n";
$examples =~ s/\r\n/\n/g;
update_file( $example_file, $examples );
};
};
sub update_file {
my( $filename, $new_content ) = @_;
my $content;
if( -f $filename ) {
open my $fh, '<:raw:encoding(UTF-8)', $filename
or die "Couldn't read '$filename': $!";
local $/;
$content = <$fh>;
};
if( $content ne $new_content ) {
scripts/generate-rss.pl view on Meta::CPAN
);
$entry->issued( $created );
$feed->add_entry( $entry );
}
$gh->issues_and_comments(
#Perl => 'perl5'
$since,
);
sub update_file( $fn, $content ) {
my $needs_update = ! -e $fn;
if( ! $needs_update ) {
open my $old, '<', $fn
or die "Couldn't read old content from '$fn': $!";
binmode $old, ':utf8';
local $/;
my $old_content = <$old>;
$needs_update = $old_content ne $content;
};
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.471 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )