Subject: | $form->fieldset(name => label) doesn't work due to wrong check |
Date: | Sat, 1 Dec 2007 15:20:01 +0200 |
To: | bug-CGI-FormBuilder [...] rt.cpan.org |
From: | Ilmari Vacklin <ilmari.vacklin [...] cs.helsinki.fi> |
The POD says that the following should work:
$form->fieldset(name => label);
However, in sub fieldsets (which fieldset is aliased to), the code for
this case is under the following check:
elsif (@_ % 2) {
which is run after $self has already been shifted off @_.
The fix is probably just to invert the test.
--
Ilmari Vacklin
Message body not shown because it is not plain text.