gebelo has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas -- up to an including an entirely different approach to the problem?open fileOUT, ">> searchresults.htm"; print fileOUT $ua->response->content; close fileOUT; # loop through the rest while ($ua->response->content =~ m/nextbut/i) { $ua->form_name( 'nextbut' ); $ua->click; die "I'm failing ", $ua->reload unless $ua->success; sleep 15; open(fileOUT, ">>searchresults.htm"); print fileOUT $ua->response->content; close(fileOUT);}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What's the best way to use $mech->success?
by tlm (Prior) on Mar 28, 2005 at 21:52 UTC | |
|
Re: What's the best way to use $mech->success?
by cbrandtbuffalo (Deacon) on Mar 28, 2005 at 21:24 UTC |