Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by aufflick (Deacon)
on Sep 28, 2004 at 23:10 UTC ( #394788=note: print w/ replies, xml ) Need Help??


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

Minor addition to script to avoid an annoying warning:

use CPAN (); $CPAN_has_usable = \&CPAN::has_usable; local *CPAN::has_usable = sub { return if $_[1] =~ /^(?:Net|LWP)/; return $CPAN_has_usable->( @_ ); }; $ENV{PERL_READLINE_NOWARN} = 1; CPAN::shell();
It seems that if the shell is started this way rather than directly on the commandline, it complains "Can't ioctl TIOCGETP: Invalid argument" - readline etc. work anyway, so the env variable disables the warning.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-23 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (241 votes), past polls