Re: 500 Internet error problems

Kingpin (mthurn@tasc.com)
Thu, 29 Oct 1998 11:05:39 -0500


When you run a cgi program in cgi-bin, it runs WITH NO ENVIRONMENT
VARIABLES.  In particular, the PERL5LIB variable is not set.  So, your
cgi program doesn't know where ~/perl is.  In fact, it doesn't even
know who ~ is.

One solution (I think) is to add  

use lib '/users/homes/wherever/perl';

Please read the "Idiot's Guide to Solving Perl/CGI Problems" at
http://language.perl.com/CPAN/doc/FAQs/cgi/idiots-guide.html (but
don't let the title discourage you).

-- 
 - - Martin "Kingpin" Thurn                    mthurn@tasc.com
     Research Software Engineer           (703) 793-3700 x2651
     The Information Refinery              http://tir.tasc.com
     TASC, Inc.                            http://www.tasc.com

Artoo-Detoo, you know better than to trust a strange computer. -- C-3PO, The Empire Strikes Back