Jonny Cavell wrote:
> Hi,
>
> Can anybody help with these exciting problems:
>
> 1) When using [$ var $x $y $], these global variables are not visable to any
> Embperl files called via Execute (although %fdat, %udat etc. are).
> Moreover, these Executed files can have non pre-declared global variables
> (i.e. be un-strict), and Embperl does not complain:
define and use fully qualified package variables
[$ var $global::one $]
one: [+ $global::one +], two: [+ $two +]
>
> 2) More worrying is that if you Execute an embperl file which has [$ var
> $test $] in it, the value of $test persists if the same file is Executed
> again, from the same parent file. In other words, $test is not getting
> initialised each time the component is Executed:
>
set the cleanup parameter to 1 to cleanup globals immediately. otherwise they get
cleared
after we are done with the client.
Execute ({inputfile=> 'test.epl', cleanup => 1});
Execute ({inputfile=> 'test.epl', cleanup => 1});
hth,
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]