maint/run-after_build.pl
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | use autodie qw( :all ); |
| 4 | |
| 5 | my $content; |
| 6 | |
| 7 | open my $in, '<', 'Makefile.PL'; |
| 8 | while(<$in>) |
| 9 | { |
| 10 | s/^(# This file was automatically generated by Dist::Zilla::Plugin::Author::Plicease::MakeMaker).*$/$1/; |
| 11 | $content .= $_; |
| 12 | } |
| 13 | close $in; |
| 14 | |
| 15 | open my $out, '>', 'Makefile.PL'; |
| 16 | print $out $content; |
| 17 | close $out; |