Hmmm... Wouldn't have anything to do with the fact that you're array
assignment is to index 1 and not 0?

Try:

my @starter = ();
$starter[0] = $fdat{'starter1'};
...



Andre Landwehr wrote:
> 
> hi,
> I'm not sure if Embperl has anything to do with this or if it is
> Perl here (or just my own dumbness again as for that...):
> I pass several values to a page, called
> starter1, starter2, starter3
> main_course1, main_course2, main_course3
> dessert1, dessert2, dessert3
> 
> For easier processing later in the page the first thing I do is
> to throw them into arrays:
> my @starter;
> $starter[1] = $fdat{starter1};
> $starter[2] = $fdat{starter2};
> ...
> 
> Then I call a sub, which is below on the same page:
> updatedatabase();
> 
> And now I undef my arrays:
> undef @starter;
> 
> In the sub I want to put $starter[1] et al. into a database, but
> every tenth or so call of the page they are undefined! If I do
> not write the undef's earlier, for the same amount of calls to the
> page suddenly the arrays contain old values, entered several
> minutes ago.
> I cannot see how this is possible since @starter is global and
> should still hold the value passed to it earlier from %fdat.
> %fdat contains the correct value.
> 
> The Embperl version is 1.3b2, modperl 1.21, Apache 1.3.9
> The error occurs on Linux (Debian), Linux (Mandrake with
> self build Apache etc.) and on HP-UX
> 
> Any suggestions?
> 
> Andre
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
__________________________________________________________
Mr. Erich L. Markert                     [EMAIL PROTECTED]
Computer Learning Center                 TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932

Those who do not understand Unix are condemned to reinvent it, poorly.
                -- Henry Spencer

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to