Hi Gerald, I have a feature suggestion for 2.0, unless you've already done it. I took a look at the docs for 2.0 and couldn't find any mention of this, but I could be mistaken. If I'm missing something that's already there, then I apologise in advance!
I'd like to be able to make variables local to a [$ sub $] subroutine (like 'my' for a standard perl sub). Will this be possible in 2.0, maybe using the [$ var $] directive combined with a local namespace for the [$ sub $]? The [$ var $] would then be local to the sub, rather than the whole file. Like this: [$ sub foo $] [$ var $x, $y, $z $] [- ($x, $y, $z) = @_ -] [$ endsub $] [# Can't refer to $x etc here #] ... 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. This would greatly aid maintenance and debugging of large projects (like mine is growing to be) which have a number of Embperl subs in each file. Currently all the vars are global (within that file). Also, while I'm on the topic, would recursion be possible at any point? Not as pressing, but always useful. Thanks! -Neil --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]