http://www.perlmonks.org?node_id=394788


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.