Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 wandering the Monastery: (8)
As of 2015-07-31 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls