Gerald Richter wrote:
> 
> 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

I haven't used [* *] yet, mainly because the documentation still says
it's very experimental. Also, the docs say that this makes the variable
scope across multiple Embperl blocks for the *whole file*. Thus I
assumed that this would not be useful for individual [$ sub $] blocks.

I have tried to test out Embperl 2.0b5 before, but put off real effort
because it always fails big time on my existing (large!) codebase, and I
am currently very short of spare time. Also, I noticed in the README.v2
that [- exit -] doesn't work (which I use extensively), and print OUT
doesn't work in loops (I use that frequently for debugging). This is why
I've put off a full migration to 2.0.

I guess it's time now to invest the effort required to make everything
work under 2.0... What's the best way to do this? I'd like to help you
debug, but I can't do my major development work with an incomplete
toolset. So I switch back and forth (using 'make install'), try out,
send you the bug report, and then go back to 1.3.4 to continue
development in the meantime? Are there any httpd.conf settings which are
recommended for this process? (e.g. to generate the best logfile for
you).

Ok, so I've installed 2.0b5 now, and here's the first problem. Is [$ var
$] not valid any more? I have that on line 1 of one of my subroutine
files, executed using Execute ({object => ...}). I get the following
error: (this is using EmbperlObject)

[1410]ERR: 24: Error in Perl code: 'undef' is not a valid variable name
at /www/vhosts/www.crazyguyonabike.com/htdocs/Core.epl line 1 
    \<br\>\&nbsp;\&nbsp;\&nbsp;\&nbsp;BEGIN failed--compilation aborted
(in cleanup) 'undef' is not a valid variable name at
/www/vhosts/www.crazyguyonabike.com/htdocs/Core.epl line 1 
    \<br\>\&nbsp;\&nbsp;\&nbsp;\&nbsp;BEGIN failed--compilation aborted
at /www/vhosts/www.crazyguyonabike.com/htdocs/Core.epl line
1.

I tried adding an actual variable, e.g. [$ var $xxx $], but same error.

TIA

-Neil

p.s. httpd.conf settings are:

PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no
PerlSetEnv EMBPERL_DEBUG 0
PerlSetEnv EMBPERL_LOG /dev/null
PerlSetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_OPTIONS 16
PerlSetEnv EMBPERL_MAILHOST mail.nilspace.com
PerlSetEnv EMBPERL_OBJECT_BASE base.epl
PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
PerlSetEnv EMBPERL_OBJECT_ADDPATH /www/vhosts/lib/perl/Apache/Nilspace/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to