in reply to Lost Values from parse_form Sub
You have 4 undeclared variables, don't you mean to use those as hash keys instead?print $q->header,start_html," @names $action $time $date filet = $file +t",end_html;
But, why are you even copying from $q->param?print $q->header,start_html, $sr->{action}, $sr->{time}; # etc.
UPDATE:
Sometimes i
use grep to grab out things like submit buttons, say that
i have a form with multiple submits whose names are prefaced
with 'go_':
No need to copy the contents of CGI::param() to an array, loop through it copying each value to hash ... grep!my @choice = grep /go_/, $q->param;
UPDATE UPDATE: and if you are saying "hey, that only gets the names, what about the values?"
my %choice = map {$_ => $q->param($_)} grep /go_/, $q->param();
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Lost Values from parse_form Sub
by jerrygarciuh (Curate) on Mar 10, 2002 at 17:43 UTC | |
by jeffa (Bishop) on Mar 10, 2002 at 18:03 UTC |