thank you for posting this detailed question. i too need to know exactly how to do this. anyone out there that can help us, it would be much appreciated! -jim
--- Will <[EMAIL PROTECTED]> wrote: > Greets Folks, > > I usually lurk on this list, but I came across an > issue which I could really use some help with. This > will be half rant, half question, but I think I got it > figured out. What I am asking here is for someone to > either: a.) correct me if I am wrong, or b.) tell me > if I am right. > > That said, here it goes. > > In many of the books and manuals I have, it seems > every author has a different opinion on where a perl > library should go, and often authors seem to assume > that the programmer has root access for module > installs. My host is pretty supportive when it comes > to installing modules, but sometimes I wish I could do > it myself, and this would include both self-made > modules as well as pure perl modules off of CPAN > (because not-pure-perl modules would require root > access). > > My questions have been - 1.) "How do I create the > library?", and 2.) "How do I use the library?" 3.) > "How do I install pure perl CPAN modules in the > library?" > > Here are my solutions, and this is where I am hoping > to have someone tell me if I am correct or not. > > #1.) I guess the answer to question one is simply to > create a directory somewhere within my user > access/document tree, and then give it the proper > access permissions. > > #2.) Then to list the path to the library in the > module calls, like this: > > use lib '/user/public_html/cgi-bin/library'; > > BUT, if I understand this correctly that is not enough > because... in addition... I also need to explicitly > state what modules to use from the library in other > module calls... So that, for instance, if I had > installed something like HTML::Template along with a > module I created called "DBLogin" under that same path > I just listed, then I would use it by saying: > > use lib '/user/public_html/cgi-bin/library'; > > #PLUS, > > use HTML::Template; > use DBLogin; > > and so on... > > #3.) The third thing is that I am still unclear on how > to put CPAN modules into the library. I guess one > just > downloads them from CPAN and then uploads them to the > library (using ASCII and proper access permissions), > but, still, if I unzipped a CPAN module on my Windows > system before uploadingit, then would it cause any > problems when I ftp-ed it to the server? Or, should I > unzip them on Unix only? > > I think that about sums up my concern. I hope I > havent gone on too terribly long, but this concept is > important to me, and yet it has been a bit frustrating > trying to comprehend it. > > Any good help much appreciated. > Thanks, > > Will > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]