Module Question
- From: "Wayne Happ" <whapp@xxxxxxxxxxx>
- Date: Sat, 7 Jan 2006 12:51:38 -0500
I have a question about finding a module at rutime.
Here's what I would like to do.
push(@INC, @notknowntillrunning);
use lib 'notknowntill running';
use foo;
My problem is I do not know the where the Module will be till the script
runs. Perl won't compile the script because at time of compilation the
enviroment is not known.
This is a corporate computing environment and I can't change the value of
@INC before running my script. (It's a policy thing.)
Any ideas on how to get the same effect?
Wayne
.
- Follow-Ups:
- Re: Module Question
- From: Randal L. Schwartz
- Re: Module Question
- Prev by Date: Finding and replacing Invalid Tokens in an XML document
- Next by Date: Can someone tell me what this is doing
- Previous by thread: Finding and replacing Invalid Tokens in an XML document
- Next by thread: Re: Module Question
- Index(es):