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 ...
In reply to Re: regex and WWW::Mechanize parsing a ->content of mechanize object
by Cody Pendant
in thread regex and WWW::Mechanize parsing a ->content of mechanize object
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |