For the crawling part do read the link "HTML Crawler" above
Once you've identified the HTML you wish to parse think about
using HTML::Parser you can over-ride the method
$self->comment($comment)
to perform the required action when your hidden fields are encountered.
Hope this helps