http://www.perlmonks.org?node_id=701369


in reply to Re^2: Is this a bug in select(), or am I just confused? (or something else)
in thread Is this a bug in mechanize::select(), or am I just confused? (or something else) (answer: bad html)

You can't have an empty SELECT, but you can have a SELECT with a single empty OPTION. When user adds an item you should check if the first option is empty and delete it before adding the new option.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re^3: Is this a bug in select(), or am I just confused? (or something else)