perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Stupid Execute problem
Date Thu, 02 Dec 2004 05:14:10 GMT
> >
> >>>  I'm trying simple
> >>> [- Execute('_ref.eo') -]
> >>
> >>
> >>
> >> In Embperl 2 you have to add a ';' in every statement in a 
> [--] block 
> >> and you have to omit it it [++] blocks.
> >

Normaly [- -] should also work without ; ([* *] blocks requires the ;).

> 
> And just for the archives: the problem is also my favorite 
> trick with package
> 
> [- Execute({ inputfile => '*', package => __PACKAGE__ }) -]
> 
> then Execute and pieces of code mysteriously stop working... 
> it's probably not recomended hack anymore ;-)
> 

Basicly it should still work, but depending on what you try to do it might
bring you (or Embperl) into trouble. Escpecialy when you call such a page
from multiple points, because all calling pages sits in a different
namespace and you try to get the called page in all of these namespaces.

Gerald


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


Mime
View raw message