http://qs1969.pair.com?node_id=153399


in reply to Looping over all checked boxes w/ CGI.pm

There are a lot of ways to do it. You only want the check boxes, so what I would do is first check to make sure all my checkboxes have the same name and then store them in an array like this:
#! Perl -w use strict; use CGI; my $q = new CGI; my @checkbxs = $q->param('the_name'); # only those that are checked en +d up in here for (@checkbxs) { &delete_file($_); # assuming a delete sub exists }