Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Forcing CPAN.pm to ignore LWP/Net::FTP and use wget/lynx etc

by PodMaster (Abbot)
on Sep 28, 2004 at 10:20 UTC ( #394523=note: print w/ replies, xml ) Need Help??


in reply to Forcing CPAN.pm to ignore LWP/Net::FTP and use wget/lynx etc

From what I can tell (by scanning CPAN.pm for LWP), you need to override sub CPAN::has_usable, something like the following should do

#!/usr/bin/perl use CPAN(); $CPAN_has_usable = \&CPAN::has_usable; local *CPAN::has_usable = sub { return if $_[1] =~ /^(?:Net|LWP)/; return $CPAN_has_usable->( @_ ); }; do 'path/to/perl/bin/cpan';

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.


Comment on Re: Forcing CPAN.pm to ignore LWP/Net::FTP and use wget/lynx etc
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (19)
As of 2014-07-31 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls