dcvr69 has asked for the wisdom of the Perl Monks concerning the following question:
My question is, does anyone have anything... simpler, that would work too? Did I miss something in my googling that addresses this already?#!/appl/my/perl/bin/perl use CPAN(); $CPAN_has_usable = \&CPAN::has_usable; local *CPAN::has_usable = sub { return if $_[1] =~ /^(?:Net|LWP)/; return $CPAN_has_usable->( @_ ); }; $CPAN::Config->{wget} = "/usr/sfw/bin/wget"; CPAN::shell();
This is one I'll definitely keep in my toolkit... but ideally, something simple enough to recall from memory would be even better. I guess this would suffice - I'd just have to be patient on the Net::FTP timeout:
perl -MCPAN -e'$CPAN::Config->{wget}="/usr/sfw/bin/wget";CPAN->shell() +'
|
|---|