in reply to cpan install without docs

You can use the PERL_MM_OPT environment variable to tell ExtUtils::MakeMaker not to install the man pages along these lines (untested):

export PERL_MM_OPT='INSTALLMAN1DIR=none INSTALLMAN3DIR=none'

There will probably be something similar available for Module::Build and other installers.

Obviously this will not strip out the POD which is embedded in the .pm files. You would have to de-POD them yourself if that's the objective.


🦛

Replies are listed 'Best First'.
Re^2: cpan install without docs
by ikegami (Patriarch) on Dec 20, 2024 at 15:33 UTC

    Assuming none is recognized, the equivalent would be

    export PERL_MB_OPT='--install_path bindoc=none --install_path libdoc=n +one'
Re^2: cpan install without docs
by pengo (Novice) on Dec 20, 2024 at 12:48 UTC
    thanks! I will give it try and let you know