At 07:34 AM 1/26/2002 -0600, Nishikant Kapoor wrote: > >Well, its really a Perl question but still... > >My ISP is running H::T version 2.4 but I need to use H::T 2.5 since it >has the fix for 'global_vars => 1'. I have the HTML/Template.pm sitting >in my cgi-bin/ but the script still seems to be picking up the one in >std. @INC. Is there a way to force the script to use H::T from my >cgi-bin instead of /usr/lib/perl5/5.6.0/* ?
The standard way is to use your own perl library. Use PREFIX when building the module and make install will install it in your own library. See http://cpan.org/modules/INSTALL.html In general, I would probably not put the modules in the cgi-bin directory. >push (@INC, "/home/nkapoor/www/cgi-bin"); > That won't work as it happens too late. The modules are loaded at compile time, and that's a run time command (outside of BEGIN). Bill Moseley mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
