This is explained in the documentation: Per default, CGI::HTML::Functions is state-preserving, that is, input from a previous requests overrides the defaults in the code. The simple example given by pryrt works because there is no previous request.
You can use the -nosticky pragma to prevent that generally, or use override on a per-element basis, if you want a different behavior.
In reply to Re^2: is there anything more VEXING than checking the $cgi->checkbox ?
by haj
in thread is there anything more VEXING than checking the $cgi->checkbox ?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |