>
> Thank you for looking into my problem.  I am attaching a zip file with a
> copy of the emperl log of a failed view (first), and a successful
> view(second), as well as all of the files evaluated during execution.
>
> I have changed the password string, but everything else is identical to
the
> files here on my server.
>
> It seems that, in the logs, the difference takes place at lines 406 and
766:
>    At 406, "fellowship_listing" follows EVAL, but none of the code from
that
> subroutine seems to be run.
>    At 766, "fellowship_listing" follows EVAL, and the code is included.
>

The anwser is quite simple. The Embperl sub fellowship_listing isn't defined
at the first run. Perl takes it as string as you see in the log:

[1068]SRC: Line 33: [- fellowship_listing -]

[1068]EVAL<  fellowship_listing
[1068]EVAL> fellowship_listing

After the sub is defined it is executed. Simply move the [$ sub
fellowship_listing $] ... [$endsub$] before the first call to it and it will
work

Unlike Perl, Embperl's subs have to be declared before the code that calls
them. (This changes in EMbperl 2.0, so 2.0 will behave like Perl and your
code would have worked)

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




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

Reply via email to