in reply to Re^2: My local libs are not being used by my browser
in thread My local libs are not being used by my browser

I'm still not clear on your setup. But if I'm following you, this might do it. It's not pretty, has to go in the top of every CGI, but it will allow you to use local::lib locally and on your host without messing with apache or apache's ENV.

#!/usr/bin/env perl use strict; use warnings; my $local_lib; BEGIN { $local_lib = $YOUR_XECU_LOCAL_LIB_DIR if -d $YOUR_XECU_LOCAL_LIB +_DIR; $local_lib ||= $YOUR_HOME_COMPUTER_LOCAL_LIB_DIR; }; use local::lib $local_lib; # ... your script ...

Replies are listed 'Best First'.
Re^4: My local libs are not being used by my browser
by Lady_Aleena (Priest) on Sep 30, 2016 at 07:45 UTC

    I got it! I got it!

    I had to go into apache2.conf (Debian's httpd.conf) and add the following line:

    SetEnv PERL5LIB /home/me/perl5/lib/perl5

    After that, it was just adjusting a value in a script, and I can use local perl libs instead of touching root's libs. This gives me a win today!

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena
Re^4: My local libs are not being used by my browser
by Lady_Aleena (Priest) on Sep 29, 2016 at 21:43 UTC

    That is 406 files if I include all my .pl and .pm files. I'd rather take a chance with using root's libs.

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena