App-PDRUtils
view release on metacpan or search on metacpan
lib/App/PDRUtils/DistIniCmd/sort_prereqs.pm view on Meta::CPAN
push @lines, {parsed=>['B', "\n"]};
splice @{ $iod->{_parsed} },
$s->{linum_start},
($s->{linum_end} - $s->{linum_start}),
map {$_->{parsed}} @lines;
}
$iod->_discard_cache;
my $new_content = $iod->as_string;
#say $new_content;
my $modified = $old_content ne $new_content;
if ($modified) {
return [200, "Sorted prereqs", $iod];
} else {
return [304, "Not modified"];
}
}
1;
( run in 1.415 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )