|Perl Monk, Perl Meditation|
Auto-Installing Modulesby Nitrox (Chaplain)
|on Oct 30, 2002 at 17:50 UTC||Need Help??|
Nitrox has asked for the wisdom of the Perl Monks concerning the following question:
I have an application I've written for WIN32 that requires the end-user to install certain modules before use. I'd like to make the install process as painless as possible by finding a way to 'auto-install' the needed modules.
For example, if the 'install' script needs WIN32::SomeModule then I can catch 'use' errors and install the module (assuming an internet connection and it existing in the PPM repository) with:
But will a subsequent 'use Win32::SomeModule' fail also since the interpreter is already running with the library collection that existed at the time of execution?
Furthermore, if I'm aware that a required module is not available in a PPM repository, has anyone experimented with auto downloading/compiling/installing from CPAN?
If a node already exists on this subject please point me to the proper place, thanks!