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 reply to Re: map, grep, for, foreach
by Zaxo
in thread map, grep, for, foreach
by mt2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |