I would like to iterate over the list of fields posted. Then, use the field
name to access the value of that field in params.

The CGI module says I can 
%params = $q->Vars;

to get the paramter list as a hash table.

but then I want to do

my $q = CGI->new();
my %params = $q->Vars;
foreach $f (keys (%params)) {
   print "$f is $params{$f} ";
}

But this tells me global symbol $f requires package name, ie its not getting
assigned any keys.

There must be a simpler way to get an array of the names of parameters
passed in through CGI and then use those names to index CGI->param and get
their value.

Any pointers?


--
David Bear
College of Public Programs at Arizona State University


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to