Gerald Richter wrote:

> > base.html
> > [-
> > # Setup other packages
> > $req = shift;
> > Execute ({inputfile => 'subs.html', import => 0});
> 
> You could move the import in a [! !] block, so it will only be executed once
> at compile time
> 

Gerald, when I try to move the above Execute statement into a [! !]
block, before the rest of the action, Embperl gives me an error on the
line where I call Execute ('subs.html#NEW', \$req->{subs}):

         [1203]ERR: 42: Line 1: Call to unknown Embperl macro NEW

This can be made to work again by making the [! !] into [- -]. Is this a
bug then with [! !]? I have also tried with import => 1, same error. I
even tried restarting Apache in case it was caching something. 

Actually, the only way I can get this to work with [! !] is as follows:

        [! Execute ({inputfile => 'subs.html', package => __PACKAGE__}) !]

So maybe it's not so much a problem with [! !] as with the 'import'
param. I don't know.

If there's something different I should be doing in the call to
Execute() when it is inside [! !], then I apologise, but right now it
looks to me as if there may be a problem. Not a showstopper, for the
time being I'll just use [- -] instead.

/Nil

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

Reply via email to