Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: CPAN force install of PersistentPerl fails to install

by nenbrian (Acolyte)
on Apr 09, 2008 at 18:51 UTC ( [id://679324]=note: print w/replies, xml ) Need Help??


in reply to Re: CPAN force install of PersistentPerl fails to install
in thread CPAN force install of PersistentPerl fails to install

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found