pat_mc has asked for the wisdom of the Perl Monks concerning the following question:
I get error messages of the type#! /usr/bin/perl -w use strict; use WWW::Mechanize; my $mech = WWW::Mechanize -> new(); $mech -> get( 'http://www.merriam-webster.com/' ); for my $input ( $mech -> find_all_inputs() ) { printf $input -> name(), $input -> type(), "\n"; } for my $image ( $mech -> find_all_images() ) { printf "%-100s %s\n", $image -> image(), image -> tag(); }
Can't locate object method "find_all_inputs" via package "WWW::Mechani +ze" at test.pl line ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Failure of find_all_inputs and find_all_images in WWW::Mechanize
by Anonymous Monk on Aug 18, 2008 at 08:19 UTC | |
by hexcoder (Curate) on Aug 18, 2008 at 08:52 UTC | |
by pat_mc (Pilgrim) on Aug 18, 2008 at 10:12 UTC | |
|
Re: Failure of find_all_inputs and find_all_images in WWW::Mechanize
by Anonymous Monk on Aug 18, 2008 at 08:07 UTC |