in reply to How to take values from check box in CGI form?

as an aside, and a bit of a nit pick, I hate to see map used like this. IMHO it should only normally be used if you're processing an array and outputting an array.

What's wrong with this?

for (@mailid) { print qq{<tr><td><input type="checkbox" name="address" value="$_" +/> $_</td></tr>\n}; }
---
my name's not Keith, and I'm not reasonable.

Replies are listed 'Best First'.
Re^2: How to take values from check box in CGI form? [OT]
by Tanktalus (Canon) on Jun 16, 2005 at 14:20 UTC

    I agree with your nit that map should be used to return an array (er, list), that is, I don't like map in void context. However, in this case, it is returning a list - which is then used as a list of parameters to print. Remember - print takes a list just fine ;-)