I want to download all the CPAN modules using perl script. I Googled it. I found many of them suggested WWW::Mechanize module. Can any one give me clear idea how to start this? I tried the below code
use WWW::Mechanize;
my $url = 'marinetraffic2.aegean.gr/ais/getkml.aspx';
my $local_file_name = 'getkml.aspx';
my $mech = WWW::Mechanize->new;
$mech->get( $url, ":content_file" => $local_file_name );
but i couldn't get the possible output. Please help me out
Rsync CPAN. How to mirror CPAN .
If you just want the current modules, check out CPAN::Mini .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.