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;

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>




Reply via email to