You missed a $ off the front of $DATA{$field} which would prevent this code from compiling.
Even with that fix, it's still a bad idea as it breaks on multi-valued CGI parameters. See (Ovid) Re(2): use CGI for more details.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: You want Params Into a Hash Called Data?
by davorg
in thread making a hash from cgi parameters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |