Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $oecd = URI->new('http://cs3-hq.oecd.org/scripts/hpv/DetailProd +uit_Contenu.asp?CASNUM='."$_"); $mech->get($oecd); #$mech->follow_link(url_regex => qr/\.pdf/); #my $url = $mech->find_link(text_regex => qr/\.pdf/); my @links = $mech->find_all_links(); for(@links) { print $_->url(), "\n"; print $_->text(), "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mechnize, Links and Downloads
by almut (Canon) on Aug 16, 2007 at 14:55 UTC | |
by Anonymous Monk on Aug 17, 2007 at 07:19 UTC | |
|
Re: Mechnize, Links and Downloads
by marto (Cardinal) on Aug 16, 2007 at 14:51 UTC |