in reply to CPAN force install of PersistentPerl fails to install

cpan notest install ...

Replies are listed 'Best First'.
Re^2: CPAN force install of PersistentPerl fails to install
by nenbrian (Acolyte) on Apr 09, 2008 at 18:51 UTC
    Wow, oddly that worked. I had previously thought that notest() was like force(), in that it actually did something. I was calling force() like this:
    $obj->force('install');

    But that wasn't working. So I tried calling notest() in the same way:
    $obj->notest('install');

    This isn't documented anywhere, but I just generalized from the force() method usage. However, looking at the CPAN.pm code, the notest() method just sets a 'notest' flag in the module object. So after seeing your reply, I decided to look into notest() again. This is what I eventually found works:
    $obj->notest(); $obj->install();

    I need (or at least would prefer) to be able to do this using the CPAN API, rather than running the cpan utility as an external program, and now it looks like I can.

    Thanks for the response.
Re^2: CPAN force install of PersistentPerl fails to install (cpan[1]> force notest install PersistentPerl )
by Anonymous Monk on Feb 26, 2013 at 08:34 UTC
    To force install parent without testing use cpan -f -i -T PersistentPerl

    Or from cpan shell cpan[1]> force notest install PersistentPerl