In article <[email protected]>, (Andreas J. Koenig)
<[email protected]> wrote:

> >>>>> On Tue, 27 Jan 2009 18:24:26 -0500, David Golden <[email protected]>
> >>>>> said:
> 
>   > When I looked at this for a question on stackoverflow, I concluded that
>   > the thing to do was
>   > check $mod->uptodate rather than rely on the return value of install.
> 
>   > my $mod = CPAN::Shell->expand("Module", "Module::Name::Here");
> 
>   > if ( ! $mod->uptodate ) {
> 
>   >     $mod->install;
>   >     die "Problems installing" unless $mod->uptodate;
> 
>   > }
> 
> Yes, and that's even in the manpage:
> 
>     Note that install() gives no meaningful return value. See uptodate().

Yes, I know about that part, but there's also all of the possible
messages it might print. I'd like to capture those to see if I can suss
out what went wrong. I'd like to document those diagnotistics to. :)

Reply via email to