>
> ... or something similar. Of course, the ideal solution would be for the
> standard 'my' to apply to the whole Embperl sub. I don't know if this is
> feasible given the implementation of Embperl and Perl itself.
>

You can use 'my' or 'local' just like in Perl with 2.0:

[$sub foo $]
[* my $a *]

.....

[$endsub$]

BTW: [* local $x *] already works since 1.2

>
> Also, while I'm on the topic, would recursion be possible at any point?

Yes, with [* local $foo *] it's already possible since 1.2. In 2.0 you can
addionaly use the [* my $foo *].

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