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:
Another possibility is hash slices.%input = map { $_ => $q->param($_) } $q->param();
After Compline,
Zaxo
|
---|
In Section
Seekers of Perl Wisdom