develooper Front page | perl.beginners | Postings from January 2002

RE: What's wrong with this?

Gary Hawkins
January 29, 2002 05:21
RE: What's wrong with this?
Message ID:
> If you want to loop over all the form fields, you'd do:
>   for $field (param()) {
>     print "$field => ", param($field), "<br>\n";
>   }

How can the param's be placed into a new hash?

I'm working with a script that uses a lot of $data{'each_thing'} from %data.  I
tried replacing all instances with param('each_thing') but apparently there is
more going on there than just getting the data from the web page, in other
places.  So I'd like to just put param() in %data at the end of their parsing
routine and leave it at that for now.

/g Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About