Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Installing CPAN Modules within BEGIN of PERL Script

by swl (Parson)
on Aug 18, 2021 at 22:22 UTC ( [id://11135945]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135945]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found