# from m.nooning
# on Monday 29 January 2007 08:53 am:

>Another thing, with the original t1.pl, which has a "use mylib" in it,
...
>The resultant a.exe ran fine, so it looks like pp will pick up mylib
>without "--lib mylib" on the pp command line.  At least if the
> directory mylib is in the current directory.

When compiling or executing, yes.  This is because the END block of the 
subprocess reports the final @INC.  However, I believe you must have 
the --lib switch for anything included via -M or static scanning.

Also, I'm pretty certain will be no mylib directory in the par.  That's 
probably not a problem in most cases, but if your code checks for 
existence of that directory, you could get into trouble.  (Note that if 
you include it via -a that you'll probably just end up with two copies 
of the modules because the scan will see them get loaded and pp will 
stick them in lib/.)

Yes, the PERL5LIB workaround is still required when compiling.  Who 
wants to write some tests for Module::ScanDeps?

--Eric
-- 
Cult: A small, unpopular religion.
Religion: A large, popular cult.
-- Unknown
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to