in reply to My Mechanize script cannot work ?
Hmm ... I've never used WWW::Mechanize so I can't really comment directly on the exact problem, though I can offer a few suggestions. 1: My guess is that $mech->quiet(1); is going to suppress any errors that might get returned, while your debugging it would probably be a good idea to set it to 0 or comment out the line (assuming WWW::Mechanize returns errors by default) so you can see if you get an error. Secondly I know that your site is an example but if the page you're trying to get is an ASP page, be sure that there isn't some kind of IE specific things on it that would cause it not to return correctly for your agent. And finally I would make sure that $mech->content() returns a SCALAR value.
Hope that helps
Lobster Aliens Are attacking the world!
|
|---|