I know it’s easy to install a module with ‘force’ using CPAN from command prompt. I am trying to achieve same through the script:
use CPAN;
eval "use Filesys::DiskSpace" or do {
CPAN::install("Filesys::DiskSpace");
};
Is there any way to add the option ‘force’ to the code?
I am having the following error while compiling the module:
make test had returned bad status, won't install without force
The warnings could not be serious, so I would like to proceed with the installation.
Thanks.
So long as you Really Know What You Are Doing:
The
usebuiltin doesn’t return anything useful, even when it is successful, so it is necessary to include the “;1” in the string eval.