in reply to Installing CPAN Modules within BEGIN of PERL Script

It's worth having a look at the lazy module on CPAN (with the caveat that I have never tried it myself).

Quick edit a few seconds after posting: Also have a look at its See Also section for other prior art.

  • Comment on Re: Installing CPAN Modules within BEGIN of PERL Script

Replies are listed 'Best First'.
Re^2: Installing CPAN Modules within BEGIN of PERL Script
by GhostCode (Initiate) on Aug 18, 2021 at 23:05 UTC
    swl,

    Thank you for the advice. I will play around with lazy a little tomorrow.

    Another thought I have been pondering, because my packaged application will include CPAN, could I not simply include LWP to pull down the modules and CPAN invocations to install from the local tar? I have done this in another scenario where I have automated download, customization, and installation of PAR::Packer.

    Best,
    Bry