On Thursday, August 29, 2002, at 05:29 PM, Michael G Schwern wrote: > There's already the beginnings of something like this in > t/TestInit.pm, but > it wasn't updated for the PERL_CORE trick. Nor do I know if it can be > entirely trusted. > > Also, Nick's example is a little odd. You usually don't > want '.' (ie. t/) > in your @INC. It's more like this: > > BEGIN { > if($ENV{PERL_CORE}) { > chdir 't'; > @INC = '../lib'; > } > } > > but in some cases you need to include something more. For example, > MakeMaker does this: > > BEGIN { > if($ENV{PERL_CORE}) { > chdir 't'; > @INC = ('../lib', 'lib'); > } > else { > unshift @INC, 't/lib'; > } > } > > so it can see specialty helper modules in t/lib/.
I admit that I was a little surprised to see 'lib' stuff here and not 'blib' stuff. Don't blibs get created when building modules in the core? -Ken