Hi,
>
> Well it looks like this:
>
> [- Execute("common.ep"); -]
>
> which contains [! sub abc { } !] and so on. So maybe I should write [!
> Execute("common.ep"); !] if I want to compile common.ep only
> once.
You could do so, but you don't know the package name they are compiled in. I
see the following possibilities:
[- Execute({inputfile=>'common.ep', package=>'foo'}) ; -]
Call them as
foo::bar
If you have only [! !] blocks in common.ep Embperl will look every request
at the page, but the [! !] are only executed when common.ep changes. You
could also put the Execute inside a [! !] Block. In this case common.ep will
be executed once per script. A change in common.ep will be only get
vissible, if the page itself changes or the server restarts.
You can also include a plain perl file via require, but be sure to include a
package foo ; at the top, otherwise the sub will be compiled in the
namespace of the first script that requires it. In this case the common.ep
will only be recompiled when the server restarts.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]