Bug#434646: libcurses-ui-perl: toogle destroys boolean value of Checkbox

Willi Mann willi at wm1.at
Thu Jul 26 06:13:29 UTC 2007


>> That said, I don't see any problem with applying your fix. The uncheck()
>> method "correctly" sets $this->{-checked} to 0, so people can't really
>> be relying on the empty string behaviour.
> 
> You can rely on its truth value. That's the way it should be used.
> 

Please tell that the DBI people. I discovered this problem when I passed 
the value that get() returns to DBI, for a boolean value field. It 
complained.

Willi




More information about the pkg-perl-maintainers mailing list