You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by RobertCZ <ro...@robert.cz> on 2004/11/29 00:14:06 UTC
Stupid Execute problem
Hi,
I'm trying simple
[- Execute('_ref.eo') -]
or
[- Execute({ filename => '_ref.eo', package => PACKAGE }) -]
When it's in the base object file, it works OK, but it does nothing in
ordinary HTML (executed) file - not even error or a trace in the
error/embperl log - and it worked in 1.3
I must be overlooking something trivial - please help.Thanks.
- Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Stupid Execute problem
Posted by Gerald Richter <ri...@ecos.de>.
> >
> >>> 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
Re: Stupid Execute problem
Posted by RobertCZ <ro...@robert.cz>.
RobertCZ wrote:
> Dirk Jagdmann wrote:
>
>>> 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.
>
>
>
> Thank you, I knew it would be something stupid - now it seems at least
> some of the problematic pages work again.
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 ;-)
- Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Stupid Execute problem
Posted by RobertCZ <ro...@robert.cz>.
Dirk Jagdmann wrote:
>> 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.
Thank you, I knew it would be something stupid - now it seems at least
some of the problematic pages work again.
- Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Stupid Execute problem
Posted by Dirk Jagdmann <do...@cubic.org>.
> 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.
--
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org