Mailing List Archive

embperl, Execute and %udat
Hi,
I am just too dumb to find my error, so I decided to ask for a
hint, maybe someone experienced a similar thing...

I use Embperl with session management. This works just fine in
all but one case: When I call one of my components via Execute() and
%udat gets modified within this component the modifications
take no effect. Any idea where my error could be? Thanks in
advance...

Andre
Re: embperl, Execute and %udat [ In reply to ]
Hi,
> I am just too dumb to find my error, so I decided to ask for a
> hint, maybe someone experienced a similar thing...
>
> I use Embperl with session management. This works just fine in
> all but one case: When I call one of my components via Execute() and
> %udat gets modified within this component the modifications
> take no effect. Any idea where my error could be? Thanks in
> advance...
>

The modification are only stay persitant, if you change someting on the "top
level", e.g.

$udat{foo}++ ; # modified
$udat{foo}{bar}++ ; # will not be stored

You may try to simply put a

$udat{foo}++ ;

after the write to the udat hash, to trigger storing.

Hope this helps

Gerald


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

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------