perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Recursivity with embperl
Date Tue, 21 Jan 2003 06:59:49 GMT

>
> it seems that embperl is loosing the values for recursive process.
>
> Do  you know a way to do recursive processes with embperl? i am using
> embperl 1.3.4
>

If you are using Embperl's [$ sub $] or Execute to do the recursive call you
need to declare the variables local. In Embperl you can do this with

[*
local $foo ;
local $bar ;
*]

Note that in 1.3.4 'my' instead of local does not work (in 2.0 it does)

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 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message