In a message dated: Tue, 01 May 2001 12:43:40 PDT
Todd Shoenfelt said:
>If you want a complete dump of @INC:
>
>perl -e 'print "$_\n" for @INC'
This reminds me of an interesting dilemma I ran into a while back. I
wrote an application which required a module I had written for use
with this particular app and a couple of others yet to be written.
I wanted to "autoconf" the entire package which turned out to be a
nightmare (talk about a great idea that's got horrible
documentation!). I ended up writing my own "configure" script, in
perl of course, but had trouble with figuring out where to install
data files. MakeMaker defines the following variables (from the man
page):
INST_ARCHLIB INSTALLARCHLIB INSTALLSITEARCH
INST_LIB INSTALLPRIVLIB INSTALLSITELIB
INST_HTMLLIBDIR INSTALLHTMLPRIVLIBDIR INSTALLHTMLSITELIBDIR
INST_HTMLSCRIPTDIR INSTALLHTMLSCRIPTDIR
INST_BIN INSTALLBIN
INST_SCRIPT INSTALLSCRIPT
INST_MAN1DIR INSTALLMAN1DIR
INST_MAN3DIR INSTALLMAN3DIR
But none of these address where to put a data/config file.
Unfortunately, my package depends upon a config file, which would
most likely go in /etc, but I'm trying to allow for crazy possibility
that someone might want to install my stuff somewhere else :)
Any ideas?
Thanks,
--
Seeya,
Paul
----
It may look like I'm just sitting here doing nothing,
but I'm really actively waiting for all my problems to go away.
If you're not having fun, you're not doing it right!