#!/usr/bin/perl -w use CGI; my $cgi = CGI->new; print $cgi->header, $cgi->start_html, $cgi->start_form; if ( my @selected = $cgi->param( 'my_checkbox' ) ) { print "
You selected: ".join( ', ', @selected )."