Mark Goland wrote:

http://search.cpan.org/~andk/CPAN-1.76/lib/CPAN.pm#Programmer's_interface

Is there any way to make $mod->install and $mod->uptodate not have any output as per below?

#!/usr/bin/perl

use strict;
use warnings;
use CPAN;

close STDOUT; # that should do it

Thanks for the idea mark :)

If I close it here I won't be able to print my own message later however

I was thinking about rediretcing STDOUT and STDERR just before the calls to install() and uptodate() and then putting them back to normal right after. That way only the output I want to be quelched is quelched.

I was hoping for a built in way though, like $obj->quiet; or $obj->verbose(0); or something to keep it from doing it anyway instead of fiddling with STD*

Anyone know if anything like that exists? Or do I need to fiddle with redirecting STDOUT/ERR before and after to get install() and update() to be "quiet" ?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to