geektron has asked for the wisdom of the Perl Monks concerning the following question:
i want to build a checkbox_group with CGI.pm's methods. easy enough:
$cgi->checkbox_group( -name => 'foo', -values => [ keys %hash ], -labels => \%hash );
the problem arises when i want to have a SUBSET of keys %hash, and not all the keys.
the problem doesn't seem to be in the subroutine i'm using to build the subset, but rather with CGI.pm itself. i just hard-coded one of the values, and it still didn't give me the label.
what i'm trying to do:
and it doesn't seem to work/ be supported. . . .$cgi->checkbox_group( -name => 'foo', -values => $subset -labels => \%hash );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm, labels, and subsets
by geektron (Curate) on Feb 16, 2001 at 08:38 UTC | |
by chipmunk (Parson) on Feb 16, 2001 at 08:47 UTC | |
by geektron (Curate) on Feb 16, 2001 at 08:55 UTC | |
by merlyn (Sage) on Feb 16, 2001 at 08:45 UTC |