No need to use LWP.  You can call CPAN directly:

  use CPAN;
  CPAN::install("Some::Module");

But why stop at writing a standalone script?  How about a Devel:: module
that watches for a failed require() call, installs the missing module,
and continues?  :)


 -- Jeremy


On Mon, 2003-11-24 at 13:31, Ranga Nathan wrote:
> I had a horror weekend trying to satisfy all the dependencies for 
> XML::XSLT. Despite the best efforts of authors and admins, it took a long 
> time. 
> 
> It should be possible to compile a dependency tree for all the modules so 
> it can be viewed or programmatically accessed. CPAN tries to do this to 
> some extent but relies on the docs.
> 
> Given a module, we should be able to do some magic with LWP::UserAgent (I 
> assume CPAN to be an authoritative source).
> 
> Someone may already have done this.
> 
> Any ideas?

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to