Can't find forms in a webpage using Perl module - WWW:Mechanize
I am using the perl module WWW:Mechanize
Until now everything was fine, but for a certain webpage it seems unable to find an existing form:
<form id="formaction" method="post" action="omad开发者_运维问答m_locate.php">
Although when I print the content of the page, the expected page is printed and its the right page.
I have used print Dumper($mech->forms());
it gave me nothing;
$mech->forms
returned nothing;
Everything tells me that the page has no forms although it has, same thing for the input files...
Btw I was able to access other forms in other pages using the excat method.
In old versions WWW::Mechanize got errors to search some forms. It's important if you're using some Linux distribution with customs packages which aren't very updated.
精彩评论