http://qs321.pair.com?node_id=172078


in reply to map, grep, for, foreach

Your map and grep are in void context. map does work within the codeblock which could as well be done outside. grep is a plain poor choice. for and foreach are identical:

%input = map { $_ => $q->param($_) } $q->param();
Another possibility is hash slices.

After Compline,
Zaxo