Dist-Iller
view release on metacpan or search on metacpan
lib/Dist/Iller/DocType.pm view on Meta::CPAN
if(!defined $previous_document) {
$path->spew_utf8($new_document);
say "[Iller] Creates $path";
return;
}
my $comment_start = $self->comment_start;
my $diff = diff \$previous_document, \$new_document, { STYLE => 'Unified' };
my $diff_count = 0;
my $skip_first = 1;
for my $row (split m{\r?\n}, $diff) {
next if $skip_first-- == 1;
next if $row =~ m{^ };
if($row =~ m{; authordep }) {
++$diff_count;
next;
}
next if $row =~ m{^[-+]\s*?$comment_start};
next if $row =~ m{^[-+]\s*$};
++$diff_count;
}
( run in 1.455 second using v1.01-cache-2.11-cpan-71847e10f99 )