"theatrale" <[EMAIL PROTECTED]>

> in all my perl programs, there is a line to include my own libray :
> use lib $ENV{'PTI_CGI_HOME'};

> I wonder how to declare "PTI_CGI_HOME" and where (in apache ?).

This is not an Apache mailing list. Further, you did not provide the
version of Apache you are using.

But if it _were_ an Apache mailing list, you would have been directed to
the documentation, which comes with your version of Apache, and is also
available at http://httpd.apache.org/docs-2.0/ (assuming 2.0).

Under that, you would have found a section titled "Environment Variables",
and in a couple clicks you would have arrived at
http://httpd.apache.org/docs-2.0/mod/mod_env.html#setenv which tells you
what directive you want (the "how") to put in file httpd.conf (the
"where").

> and what value is needed ?
> local --> C:\thearter\cgi-bin\PTI\
> OR url --> http://localhost/cgi-bin/PTI/

You need the local, but I think you can use front slashes if you like. I
_know_ Perl will take them, even in the -M qualifier.

This question suggests a REALLY COOL enhancement:

use url qw{http://somehost/perl_library/};
use Foo::Bar;     # Gets fetched from the URL if it isn't found in @INC.

Obviously, LWP gets loaded somewhere along the line. The funny thing is,
it's not at all obvious to me that some variant of this can't be done.

Tom Wyant



This communication is for use by the intended recipient and contains 
information that may be privileged, confidential or copyrighted under
applicable law.  If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited.  Please notify the sender
by return e-mail and delete this e-mail from your system.  Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer.  This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.

 Francais Deutsch Italiano  Espanol  Portugues  Japanese  Chinese  Korean

            http://www.DuPont.com/corp/email_disclaimer.html


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to