Looks like the first argument should be something containing html.@forms = HTML::Form->parse( $html_document, $base_uri ) @forms = HTML::Form->parse( $response ) The parse() class method will parse an HTML document and build up "HTML::Form" objects for each <form> ele ment found. If called in scalar context only returns the first <form>. Returns an empty list if there are no forms to be found.
HTML::Form::parse returns an array in list context or the first form in scalar context. Since you don't have any forms to parse, the first form is undefined, so the answer to q2 is "probably".
In reply to Re: How to use HTML::Form
by moot
in thread How to use HTML::Form
by anykey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |