----- Original Message ----- From: "JupiterHost.Net" <[EMAIL PROTECTED]> To: <beginners@perl.org> Sent: Wednesday, January 19, 2005 8:47 PM Subject: quiet CPAN instead of verbose?
> 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 > > for my $mod (qw(Net::FTP Digest::MD5 Data::Dumper)){ > my $obj = CPAN::Shell->expand('Module',$mod); > $obj->install if !$obj->uptodate; > print "$mod uptodate in boolean " . $obj->uptodate . "\n"; > # second question: > # does uptodate() get modified when install() is called when: > # $obj->install if !$obj->uptodate; > # and install() is able to install/update it ok? > } > > > $ perl cpan.pl > CPAN: Storable loaded ok > Going to read /Users/dmuey/.cpan/Metadata > Database was generated on Wed, 19 Jan 2005 21:50:18 GMT > Net::FTP is up to date. > Net::FTP uptodate in boolean 1 > ... > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>