-
Installing Perl Modules
External host (Burlee) hosts my site and runs ActivePerl on IIS. Some of the modules I'd like to use aren't installed (CGI-Lite and XML-DOM). Anyone know of a way to get around this? I'm thinking maybe I could put the modules in my cgi-bin and then somehow tell Perl the path before the "use *;"?
-
I don't think you can do that. why don't you tell the host to put those in. I don't think it will be to much hassle for them to accomidate there customers :D
-
Actually, I think there's a built in @INC array I can put a path into as my program starts.
-
You can define your own module directory like this:
use FindBin;
use lib "$FindBin::Bin/modules";
Then you can place all the modules in your cgi-bin/modules directory, or wherever you put the modules directory. If you have a module that looks like this CGI::Foo you will have to create a CGI directory inside your modules directory and place the Foo module in it. Hope that helps.