in reply to WWW::Mechanize problem
WWW::Mechanize's links() method returns an array of WWW::Mechanize::Link objects. You can use those objects to follow the URLs like this:
my( @links ) = $mech->links(); foreach my $link ( @links ) { my $temp_mech = WWW::Mechanize->new(); $temp_mech->get( $link ); # Do whatever you want now... }
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: WWW::Mechanize problem
by Anonymous Monk on Oct 20, 2005 at 11:14 UTC | |
by Limbic~Region (Chancellor) on Oct 20, 2005 at 12:34 UTC | |
by Anonymous Monk on Oct 20, 2005 at 16:04 UTC | |
by Limbic~Region (Chancellor) on Oct 20, 2005 at 16:24 UTC | |
by herveus (Prior) on Oct 20, 2005 at 16:56 UTC |
In Section
Seekers of Perl Wisdom