sub MY::libscan { my( $mm, $path ) = @_; ## FIX SAUCE if( $path =~ m{\$\(INST_LIB\)} ){ warn "BEFORE $path\n"; $path =~ s{.SAUCE.lib}{}; warn "AFTER $path\n"; } ## allow any directory (usually . is most important ) return $path if -d $path; ## ignore perl4-style .pl files return $path if $path =~ /\.pm$/; return $path if $path =~ /^blib/; return ''; ## ignore by default } __END__ $ perl Makefile.PL INSTALL_BASE=thebase Checking if your kit is complete... Warning: the following files are missing in your kit: lib/Goner.pm Please inform the author. BEFORE $(INST_LIB)\SAUCE\lib\Goner.pm AFTER $(INST_LIB)\Goner.pm Generating a dmake-style Makefile Writing Makefile for Goner Writing MYMETA.yml and MYMETA.json $ dmake install cp SAUCE/lib/Goner.pm blib\lib\Goner.pm Installing thebase\lib\perl5\Goner.pm Appending installation info to thebase\lib\perl5\MSWin32-x86-multi-thread/perllocal.pod