in reply to regex and WWW::Mechanize parsing a ->content of mechanize object

Are you absolutely sure that WWW::Mechanize is seeing the same HTML you are?

Print out $agent->content() and make sure it contains what you think it does.

I've been caught before by a server sending different code to Mechanize than it sent to my browser, because it saw it as a different agent.



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
  • Comment on Re: regex and WWW::Mechanize parsing a ->content of mechanize object