in reply to how could use inc::Module::Install ever work? and other M::I questions

Creating the distribution properly (perl Makefile.PL && make dist) will create inc/Module/Install.pm and include it in the tarball.

Replies are listed 'Best First'.
Re^2: how could use inc::Module::Install ever work? and other M::I questions
by moritz (Cardinal) on Aug 30, 2010 at 17:46 UTC
    Doesn't that still need some @INC manipulation to work?
    Perl 6 - links to (nearly) everything that is Perl 6.
      By default, Perl includes "." in @INC, so no.
Re^2: how could use inc::Module::Install ever work? and other M::I questions
by metaperl (Curate) on Aug 30, 2010 at 18:36 UTC

      I thought you meant from the installer's perspective, not the author's. The author needs to install Module-Install which includes inc::Module::Install.

      When the author runs perl Makefile.PL, it will use the system's inc::Module::Install, and it will copy inc/Module/Install.pm locally. The local copy will be included in the distribution when the author runs make dist.

      This differs from ExtUtils::MakeMaker where both the author and the installer need to have ExtUtils::MakeMaker installed.