[html-formfu] circular_reference.t throws some uninitialized value warnings

Brian Cassidy brian.cassidy at nald.ca
Wed Sep 5 18:41:15 GMT 2007


Howdy,

I was just running the latest test suite and it seems the circular ref 
test throws some warnings:

t/bugs/circular_reference......................Use of uninitialized 
value in string eq at 
/home/bricas/tmp/HTML-FormFu/blib/lib/HTML/FormFu/Element/Checkbox.pm 
line 39.
Use of uninitialized value in sprintf at 
/home/bricas/tmp/HTML-FormFu/blib/lib/HTML/FormFu/Element/Date.pm line 250.
Use of uninitialized value in sprintf at 
/home/bricas/tmp/HTML-FormFu/blib/lib/HTML/FormFu/Element/Date.pm line 261.
Use of uninitialized value in sprintf at 
/home/bricas/tmp/HTML-FormFu/blib/lib/HTML/FormFu/Element/Date.pm line 272.

The checkbox warning is because $original appears to be undefined. The 
code gets to the elsif on line 55 which causes that "eq" issue.

The date warnings seem to come from $self->name being undef and so 
_build_(day|month|year)_name() have an "sprintf" issue.

-Brian



More information about the HTML-FormFu mailing list