Perl: the Markov chain saw | |
PerlMonks |
Re: checking if form field exists in WWW::Mechanizeby johnnywang (Priest) |
on Oct 15, 2005 at 17:52 UTC ( [id://500471]=note: print w/replies, xml ) | Need Help?? |
WWW::Mechanize's field() function calls HTML::Form's value() function which croaks when the field doesn't exist. Without changing WWW::Mechanize (HTML::Form has a find_field function), you can always wrap your call in eval:
In Section
Seekers of Perl Wisdom
|
|