in reply to Re^3: Help with Apache::RegistryLoader
in thread Help with Apache::RegistryLoader

well tried using use lib in my startup.pl file. but doesn't seem to be doing anything.

use CGI (); use Image::Size (); use Imager (); use strict; use CGI::Carp qw(fatalsToBrowser); CGI->compile(':all'); use lib ("cgi-bin/beta.pl"); use lib ("cgi-bin/betaupload.pl"); BEGIN { unshift(@INC, '/var/www/perl'); } 1;

Replies are listed 'Best First'.
Re^5: Help with Apache::RegistryLoader
by jbrugger (Parson) on Jul 08, 2005 at 05:40 UTC
    eh, use lib is to tell perl where to look for modules:
    #when using use lib ("/home/user/usermods/") #and your script is in /usr/local/somewhere/script.pl. #calling use MyOwnModule; #it's searching in /home/user/usermods/ as well.
    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.