Hi,
> I have a sub on my embperl page. It is executed like this:
> my $line = lineStatus();
>[..]
>
> Does Embperl cache the return value of a sub, and why does it do
> so if it does?
>
No, Embperl does _not_ cache the value. I guess your running into a closure
problem, so not Embperl, but youself caches the result.
You have to know that Embperl compiles all of your code into subroutines, so
you have an outer subroutine around your code (which is made by Embperl) and
a inner subroutine, that is your own. With this knowledge you should read
the section "my() Scoped Variable in Nested Subroutines" in the mod_perl
guide
(http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S) .
Solution is to either pass values as argumentes to your subroutine or to use
locals. If this is not your problem, please post a short example script.
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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]