> > The problem is, that Embperl must know, that you want to run in a Safe
> > compartement. Just add
> >
> > 'options' => HTML::Embperl::optSafeNamespace
> >
> > to the Excute parameters and it should work.
>
> Right.  That makes sense, and it is definitely a good idea to run it with
> that option, but unfortunately it doesn't address the issue demonstrated
> by the example code.   If anyone has a second, I'd like to see someone
> else run the script and see if I'm not going crazy and imagining things.
>
Rereading your first mail, seems to me that there is an additional problem
with Embperl's cleanup. This has nothing todo with Safe namespaces. Embperl
will per default tidyup your namespace and therefor execute something like
$vars = undef at the end of the first request.

Try adding the addtional parameter

'cleanup' => -1

which will disable cleanup at all, add $CLEANUP{'vars'} = 0 inside your
template, which should disable the cleanup only for that variable.

Gerald


Reply via email to