From an
old version of the docs, and still applicable in CGI.pm 3.04:
This function actually returns an array of button elements. You can capture the array and do interesting things with it, such as incorporating it into your own tables or lists. The -nolabels option is also useful in this regard:
@h=$query->checkbox_group(-name=>'choice',-value=>['fee','fie','foe'],
+ -nolabels=>1);
create_nice_table(@h);
Or generate them one at a time in a loop with
CGI::checkbox(-name => 'the_group', -value => $value, -label =>'')
, giving them all the same name, and CGI.pm can process it just like it was made with checkbox_group.