beable has asked for the wisdom of the Perl Monks concerning the following question:
I figure I could replace $mech->get($link); with system("wget -c " . $link->url_abs);, but I'd prefer to do it in Perl. Is there an easy way?#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new; $mech->env_proxy; my $url = "http://127.0.0.1/downloads/index.html"; $mech->get($url); my $link = $mech->find_link(text_regex => qr/really big download/i); $mech->get($link); __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a way to continue downloads when using WWW::Mechanize?
by PodMaster (Abbot) on Jul 20, 2004 at 06:09 UTC | |
by Kanji (Parson) on Jul 20, 2004 at 13:16 UTC | |
|
Re: Is there a way to continue downloads when using WWW::Mechanize?
by tilly (Archbishop) on Jul 20, 2004 at 06:14 UTC |