[mjd@porpoise.net.isc.upenn.edu - Mon Apr 19 14:23:32 2004]:
Show quoted text> Re version1.02:
>
> The return value of ->set_visible is not documented.
> If ->set_visible hass no meaningful return value, I suggest
> that you make it return success when it was successfully
> able to set the form fields, and failure otherwise.
>
> For example, ->set_visible("a", "b") might fail on a form with
> only one field.
> ~b mjd@plover.com
How about this:
# return the set and unset that were passed in.
if (my ($set,$unset) = $mech->set_visible('dogs','cats') and
!$unset
# all inputs were set!
}
#
else {
# examine unset inputs to debug.
}
#####
That way, if setting any value doesn't happen, you have a way to track
down exactly which one it was.
Mark