Re: ways to iterate over params

2006-12-01 Thread David Bear
Bill Jones wrote: > On 11/30/06, David Bear <[EMAIL PROTECTED]> wrote: > >> my $q = CGI->new(); >> my %params = $q->Vars; >> foreach $f (keys (%params)) { >>print "$f is $params{$f} "; >> } > > use CGI; > > my $q = CGI->new(); > my %params = $q->Vars; > foreach my $f (keys (%params)) { >

Re: ways to iterate over params

2006-11-30 Thread Bill Jones
On 11/30/06, David Bear <[EMAIL PROTECTED]> wrote: my $q = CGI->new(); my %params = $q->Vars; foreach $f (keys (%params)) { print "$f is $params{$f} "; } use CGI; my $q = CGI->new(); my %params = $q->Vars; foreach my $f (keys (%params)) { print "$f is $params{$f}\n"; } -- WC (Bill) Jones

ways to iterate over params

2006-11-30 Thread David Bear
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 (key