in reply to Checking and installing a perl module
You could eval a use of the desired module and check $@ afterwards.
How do you want to install the module? With CPAN? With system's package system?
I'd prefer that the script aborts with an information for the user, if the module is not installed. Let the user handle the installation of modules. Best of all, this already happens when using a not installed module.
Don't mess up the system installation ... How do you know the user's preferences where to install which modules?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking and installing a perl module
by Anonymous Monk on Jun 11, 2009 at 12:09 UTC | |
by Bloodnok (Vicar) on Jun 11, 2009 at 17:31 UTC | |
by vek (Prior) on Jun 11, 2009 at 22:03 UTC | |
by Bloodnok (Vicar) on Jun 12, 2009 at 10:04 UTC |