in reply to [SOLVED] WWW::Mechanize select() method fails
But not with the example above.
The difference? That blank first option:
<option value="" selected></option>
For some reason, Mechanize, or possibly HTML::Form, doesn't like it.
Luckily, Mechanize has an HTML-fixing option:
And now, with that workaround, everything's fine.my $html = $mech->content; $html =~ s[<option value=""( selected)?></option>][]isg; $mech->update_html( $html );
My question now is, who do I tell about this bug?
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize select() method fails
by Corion (Patriarch) on Nov 01, 2004 at 08:10 UTC | |
by Cody Pendant (Prior) on Nov 01, 2004 at 23:12 UTC | |
by petdance (Parson) on Nov 06, 2004 at 07:56 UTC | |
|
Re^2: WWW::Mechanize select() method fails
by perrin (Chancellor) on Nov 01, 2004 at 20:15 UTC |