perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@discerning.com
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() +]

-mda

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message