use strict; use ExtUtils::MakeMaker; my $module = 'Apache::Filter'; my ($name, $dir); ($name = $module) =~ s/.*::(\w+)/$1.pm/; ($dir = $module) =~ s/::/-/g; WriteMakefile ( 'NAME' => $module, 'VERSION_FROM' => "lib/Apache/$name", # finds $VERSION 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz", PREOP=>('rm -f README; '. "pod2text -80 < $name > README; ". "cp -f README $dir-\$(VERSION); " ), }, 'PL_FILES' => {}, 'clean' => {FILES => "t/httpd t/httpd.conf t/error_log"}, );