Re: Debugging perl modules used by Embperl page

2001-03-20 Thread Gerald Richter
> > 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

Re: Debugging perl modules used by Embperl page

2001-03-19 Thread Kee Hinckley
-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

Re: Debugging perl modules used by Embperl page

2001-03-18 Thread Gerald Richter
> > 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

Re: Debugging perl modules used by Embperl page

2001-03-18 Thread Kee Hinckley
-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. - --

Re: Debugging perl modules used by Embperl page

2001-03-18 Thread Kee Hinckley
-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

Re: Debugging perl modules used by Embperl page

2001-03-17 Thread Gerald Richter
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

Re: Debugging perl modules used by Embperl page

2001-03-17 Thread goEbusiness.com Mail Lists
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; -] > ...