in reply to How do I tell cpan not to use LWP.pm?
The source code to CPAN::Nox is:
package CPAN::Nox; use strict; use vars qw($VERSION @EXPORT); BEGIN{ $CPAN::Suppress_readline=1 unless defined $CPAN::term; } use base 'Exporter'; use CPAN; $VERSION = "5.50"; $CPAN::META->has_inst('Digest::MD5','no'); $CPAN::META->has_inst('LWP','no'); $CPAN::META->has_inst('Compress::Zlib','no'); @EXPORT = @CPAN::EXPORT; *AUTOLOAD = \&CPAN::AUTOLOAD; 1;
So you probably only need:
#!/usr/bin/perl use CPAN; $CPAN::META->has_inst('LWP','no'); shell();
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I tell cpan not to use LWP.pm? (UtS,L)
by Argel (Prior) on Feb 19, 2010 at 19:59 UTC |