in reply to Re: WWW::Mechanize and text input outside form
in thread WWW::Mechanize and text input outside form
Although you could rewrite the HTML so that the input field was inside the form tags...
# untested; salt to taste my $html = $mech->content; $html =~ s/(<input[^>]+>)(.*?<form[^>]*>)/$2$1/; $mech->update_html($html);
--k.
In Section
Seekers of Perl Wisdom