Hello Everyone,

I am in the process of developing an Embperl/Mysql site and have a
couple of questions.

One thing that I am doing now is making use of Embperl [$ sub $] [$
endsub $] for defining subroutines. If I read the documentation
correctly these subroutines will be 'imported' into any page that I
import them into. I see no mention of reuse of these subroutines, each
page seems to get it's own compiled copy in it's namespace.

I am wondering if during the Execute I can set the PACKAGE that the
subroutines are compiled into like:

 Execute( { inputfile => '/include/subs.emb', package => 'Subs', import
=> 1 } );

and then use 

 [- Subs::subroutine -]

in my pages.

I could run this once in my startup.pl, pre-compile the subroutines and
reuse them.

Thoughts,
Owen

Reply via email to