At 08:31 AM 5/18/2001 -0700, you wrote:
>Hi all,
>
>I am trying to parse a html file which has forms.
>HTML::form does not seem to parse multiple forms in a
>html file. The page that I need to login has two forms
>and it only gets the first one, which isn't the one I
>want. How would I get all the form in a HTML file? Any
>suggestions?
>
>Mak
You could grab the web page yourself, parse out each form and pass them to HTML::form
individually. Something like:
for (/(<form.+?<\/form>)/g {
HTML::Form->parse($1);
....
}
I don't actually know the features of HTML::form, but surely it will accept the
contents of the form in lieu of a URL.
Hope this helps,
-dave
--
David Hempy
Internet Database Administrator
Kentucky Educational Television - Distance Learning Division
<[EMAIL PROTECTED]> -- (859)258-7164 -- (800)333-9764
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl