Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • If I follow what you mean, here are two things that could come in handy. First, CGI::param() returns a list of the form parameter names, if you pass it no arguments. Combine that with a grep, and you can pick out all parameters that begin with 'card_', for example.

    Of course, if you give the same name to all of the checkboxes in a group, you can call CGI::param() with the name and assign the results to an array. That'll give you all the values.

    Iterating over an array is easy.