>
> It seems that if I do
> [! use lib '/whatever/wherever'; !]
> in one file, it doesn't help when i do
> [! use MyModule; !]
> in another file.
> So what is the best way to set @INC so it applies to everything?
>
If you use mod_perl, than you should put it in a startup.pl that you
include with PerlRequire in your httpd.conf.
For CGI, just include it in the embpcgi.pl
> Also, is there any way to import symbols so that they are
> available everywhere without qualification?
> So I would do this in myfuncs.epl :
> [! use MyModule qw(func1 $VAR1); !]
> and then I do elsewhere
> [! Execute 'myfuncs.epl' !]
> [+ func1() +]
>
You could use Embperl_Top_include to include some code at the top of
every page, for example some use statements.
You can also use Execute ({inputfile => '...', import => 1}) to import
subs that are declared va [$sub$]
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]