http://qs1969.pair.com?node_id=11150017


in reply to Re^3: Why don't some CPAN modules append perllocal?
in thread Why don't some CPAN modules append perllocal?

Some modules only have Build.PL, others have both Build.PL and Makefile.PL.

Replies are listed 'Best First'.
Re^5: Why don't some CPAN modules append perllocal?
by syphilis (Archbishop) on Jan 29, 2023 at 13:58 UTC
    Some modules only have Build.PL, others have both Build.PL and Makefile.PL

    If there's no Makefile.PL, then it seems you're stuck with building the module using Module::Build - and therefore perllocal will not be updated. (I suppose you could always hack your way around the issue, but that might be tedious.)
    OTOH, if there is a Makefile.PL, then perllocal should be updated if (and only if) you build the module using ExtUtils::MakeMaker,

    Annoyingly, my cpanm installation will use the Build.PL if both Makefile.PL and Build.PL are available.
    Maybe it's possible to reconfigure cpanm to default to using the Makefile.PL when both Makefile.PL and Build.PL are available. (I don't know.)
    I haven't checked to see how the cpan utility handles distros that contain both Makefile.PL and Build.PL.

    Modules that I author have never contained a Build.PL. And, for as long as I have control over them, I intend that they never will contain a Build.PL.

    Cheers,
    Rob