>
> At 5:39 AM +0100 3/21/01, Gerald Richter wrote:
> >[* *] are still experimental in Embperl 1.x. I know that they don't work
> >correctly in all situations. Please use [+ +] or [- -] instead.
>
> A thought related to [* *]
>
> I'm using DBIx::Recordset (very nice) in some of my embperl pages.
> Because it uses typglobs, I get concerned about scope, and having one
> part of page interfering with some other part, expecially if I'm
> including multiple embperl files in an EmbperlObject environment, so
> I do this:
>
> [* { local (*set); *]
> ...
> [- *set = somerecordsetcall -]
> ...
> do something with *set
> ...
> [* } *]
>
> a) Does this make sense, or am I causing myself unforeseen problems?

This should work, but I am not quite sure if Perl really cleans up the whole
DBIx::Recordset object in this way

> b) Might there be a better way to deal with this, by adding some new

Every single file have it's own namespace, so there can't be any
interferences between different files, also Embperl knows about
DBIx::Recordset and makes sure every DBIx::Recordset is closed and cleaned
up correctly at the end of the request.

If you want to cleanup a DBIx::Recordset in the middle of the page, you can
simple say

[- DBIx::Recordset::Undef ('set') -]


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