http://qs321.pair.com?node_id=419747


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.