>
> Well, my goal was to keep the changes to the server config to a
> minimum. And to have different library paths for different sites.
>
Since @INC is global for the whole server, I prefer to keep it at one place,
but that's a matter of taste. At least you avoid the problem as you
described bel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At 8:05 PM +0100 3/18/01, Gerald Richter wrote:
>You should move the
>
> use lib "$ENV{DOCUMENT_ROOT}/libs";
>
>into your startup.pl file which is executed at server startup, then the lib
>path should be correctly set in all situations. But you have
>
> I tried that today and ran into a problem. Sometimes it doesn't seem
> to figure out the path to the file, and if it's not in @INC in at
> Apache loadtime, the apache process will die with an error when it
> tries to reload the file. My code looks like this:
>
> [-
>use lib "$ENV{DOCUME
gt;
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, March 18, 2001 5:05 PM
Subject: Re: Debugging perl modules used by Embperl page
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> At 11:51 AM -0500 3/17/01, goEbusiness.com Mail Lists wrote:
> >You could just use "do" in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At 11:51 AM -0500 3/17/01, goEbusiness.com Mail Lists wrote:
>You could just use "do" instead of "use".
No, the semantics are different from "use". I haven't looked at the
specifics, but it definitely doesn't work to use replace use with do.
- --
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At 7:26 PM +0100 3/17/01, Gerald Richter wrote:
>Hi Kee,
>
>thanks for sharing this. I most cases you can use Apache::Reload. This
>modules checks on every request which Perl modules have changed and only
>reload the changed ones. You could also tell
Hi Kee,
thanks for sharing this. I most cases you can use Apache::Reload. This
modules checks on every request which Perl modules have changed and only
reload the changed ones. You could also tell it, at which modules it should
look. This works not in all cases like your solution (e.g. it doesn't
You could just use "do" instead of "use".
Bill
On Sat, 17 Mar 2001, Kee Hinckley wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> (Quite) a while back I complained about the problems of debugging a
> module that's in use by an Embperl page.
>
> [- use mylib; -]
> ...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
(Quite) a while back I complained about the problems of debugging a
module that's in use by an Embperl page.
[- use mylib; -]
...
The problem is that Embperl cashes mylib the first time it loads it,
and then you start getting really