Auto installdirs

[email protected] ("Ken Williams")
Newsgroups perl.module.build
Message-ID <[email protected]>
Me again.

One problem with this solution to setting installdirs:

  installdirs   => ($] >= 5.009004 ? 'core' : 'site'),   #A

is that an auto-generated Makefile.PL will get a static setting for
INSTALLDIRS.  This is of course the problem with any dynamic settings
in Build.PL that are expected to propagate to Makefile.PL (or META.yml
for that matter) - they get frozen at `Build dist` time.

One way to solve this particular item would be like so:

  installdirs_auto   => 5.009004,  #B

which would effectively function like #A, and generate in the Makefile.PL:

  INSTALLDIRS   => ($] >= 5.009004 ? 'perl' : 'site'),  #C

Now, does that do everything we'd want?  What about the 'vendor' dirs?
 Are those ever even fricking used anyway?

 -Ken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.