in reply to (crazyinsomniac) RE: Perl to CGI
in thread Perl to CGI

It took me two weeks to get our sys admin to install Sprite. That's one module. Getting DBI and the necessary stuff for that will take longer than my internship. Thanks for the code

She-wolf
"Wha? I don't get it."

Replies are listed 'Best First'.
RE: RE: RE: Perl to CGI
by MadraghRua (Vicar) on Aug 19, 2000 at 01:29 UTC
    Have you consisdered simply installing modules in your home directory - if you have one. At least it would be under your control and you'd have permissions to install there.

    Then you need to make sure that you include something like
    use /path/to/module/module::name;
    or push the library path to the @INC variable
    push (@INC,/path/to/module/module.pm);

    in the top of your scripts.

    MadraghRua

      That push won't work unless you wrap it in a BEGIN block since it isn't seen in time. Two other solutions are to "use lib" and to set the PERL5LIB environment variable as documented in perlrun.