Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: WWW::Mechanize and text input outside form

by Kanji (Parson)
on Jan 05, 2005 at 22:16 UTC ( #419747=note: print w/replies, xml ) Need Help??


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.


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://419747]
help
Chatterbox?
and cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2016-12-05 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.