Perrin Hawkins wrote:
>What's the purpose of that loop?
I am setting up an array in $DB->{Page}->{'.parameters'}[...] with each
entry
being the name of a parameter sent by the client. I am then setting up
an array
for each of these parameters in $DB->{Page}->{<ParameterName>}[...] with
one value
for each submitted argument (so if UserName is sent more than once I
will end up
with a $DB->{Page}->{UserName} array with one value for each submitted
argument.
It should also set up file Apache::Upload objects for posted files (so
I'm told).
>I would do something a little more compact, like this:
Thanks for the suggestion - I will look at this. My background is C/C++
and I'm
carefull about writing code that I understand in the future !
>Have you tried debugging the individual parameters to see exactly which
>ones(s) are getting munged?
It's the long submissions that are munged. I have not had a chance to
investigate
exactly where the problem happens yet. Since the original code worked
(simply
using:
$DB->{Page} = CGI::new();
) it is clear that the submission to the Apache server works, but the
return value
from the param call is missing out some of the data. As I mentioned in
the original
post I'm not clear on how the C / XS and perl files fit together so my
attempts to
debug the code did not get very far.
Regards
Rob Lambden