use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'Xyz', 'VERSION_FROM' => 'Xyz.pm', # finds $VERSION 'PREREQ_FATAL' => 1, # force prereq checks 'PREREQ_PM' => { 'DateTime' => '0', # X ? # # more prerequisites here, generated with /scandeps.pl }, # e.g., Module::Name => 1.1 'PREFIX' => '~/xyz_dummy', # shanghai install for now ); package MY; # Drastic fix for pulling the world into blib: eliminate all but Xyz.pm sub libscan { my $self = shift; my $file = shift; return $file !~ /Xyz\.pm/ ? 0 : $self->SUPER::libscan($file); }