On Mon, Nov 25, 2002 at 03:09:40PM -0800, David Wheeler wrote:
> On Monday, November 25, 2002, at 01:49  AM, Graham Barr wrote:
> 
> >>>Is t/ the only directory? It would be nice to leave t/ for tests.
> >>>
> >>>Is the indexer documented someplace? I was having trouble with it
> >>>parsing the version number of one of my modules.
> >
> >I don't know about the indexer on PAUSE, but search.cpan.org does
> >not look inside t/ but it does index all other modules it finds.
> 
> Okay, I'm moving it all into t/lib, but that means that I now have this 
> in Makefile.PL:
> 
>   use lib 't/lib';
> 
> This ain't portable, of course. I can use File::Spec, but then it 
> becomes required, too, and would likely have to be included in the 
> distribution, since Makefile.PL will use it before it uses 
> WriteMakefile(PREREQ_PM). It has been in the core since 5.6.0, IIRC. 
> How do people feel about this?

And to load the File::Spec module you've supplied you'll need a "use lib ...".

:-)

I'd just hack in the very few alternatives you need ("/" + Max + VMS,
you can ignore windows as "/" works fine) in a BEGIN block.

Tim.

Reply via email to