perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject universal @INC?
Date Wed, 04 Apr 2007 17:35:21 GMT
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?

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() +]


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message