Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-24 Thread Morbus Iff
ly ended up using "PerlSetEnv PERL5LIB" as per: http://perl.apache.org/docs/1.0/guide/porting.html#_INC_and_mod_perl -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-23 Thread Morbus Iff
ct that someone who intends to >run your code under mod_perl will be able to either add a use lib >statement to httpd.conf or put your libs in /lib/perl/ which >is automatically added to @INC. Both of those avoid this issue That's what I ended up deciding. :) Thanks for all your help! -

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-21 Thread Morbus Iff
rowing it into a BEGIN worked immediately thereafter, but I've not *extensively* tested it out under mod_perl yet. And yes, I'm attempting under Registry. -- Morbus Iff ( I'd prefer my past to be multiple choice. ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-21 Thread Morbus Iff
o do this instead: BEGIN { unshift(@INC, qw(lib extlib)); } -- Morbus Iff ( take this ming! i'm sick of your dynasty! ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.o

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
At 7:53 PM -0500 2/19/04, petersm wrote: >Morbus Iff wrote: >> So, in my case, it appears that eval'ing the module in the .cgi script >> is my only solution, based on this bit from the porting guidelines: >> >> When running under mod_perl, once the server is up @

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
At 6:27 PM -0500 2/19/04, Morbus Iff wrote: >>You are either getting the wrong module name in some cases, or it is not >>able to read the module file for some reason. Just check $@ for the >>message and find out. > > Can't locate LibDB/DB/MySQL.pm in @INC (@INC con

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
s I intended, since the top of all my .cgi scripts include: use lib 'lib'; use lib 'extlib'; /me heads off to read more. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exe

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
, a "use the database" call to that process fails because LibDB::DB::MySQL isn't part of that cache. Refreshing like mad eventually brings me to a child that has not previously cached things, and thus, LibDB::DB::MySQL is loaded and cached. If that's the case, then I sh

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
a) the eval fails or it gets cached or whatever, then b) I'd be returning a blessed object for a module that hasn't been loaded. *That* could cause the ->connect to not exist, thus causing my error. Right? /me searches the mod_perl docs for mentions of eval. -- Morbus Iff ( i put the d

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-19 Thread Morbus Iff
get the error [1]. From ignorance, this *can't* be related to globals or caching, right (since it is reporting the correct package name, and a cache wouldn't suddenly "remove" a function)? What should I look for? [1] http://groups.yahoo.com/group/modperl/message/57303 Progr

Re: Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-18 Thread Morbus Iff
to poke around with a little more understanding before I bug you again . [1] Program fragment delivered error ``Can't locate object method "connect" via package "LibDB::DB::MySQL". -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and ht

Wow. Uh. Heh. PerlRun and Seeming Caches...

2004-02-18 Thread Morbus Iff
o.com/group/modperl/message/57303 -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus -- R

Re: Shared Module Vars, Missing Object Methods?

2004-02-14 Thread Morbus Iff
problem repeatable, and you will have a hard time >solving it if you can't come up with a way to repeat it. Gotcha. -- Morbus Iff ( i reserve the right to kill you if i get pissed. ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene

Re: Shared Module Vars, Missing Object Methods?

2004-02-13 Thread Morbus Iff
>startup. Throw in a log statement where you connect to the database and >make sure it doesn't happen before you send in a request. I'm not, but realize that it's never getting to the actual database connection: instead, it's telling me that the ->connect routine doe

Re: Shared Module Vars, Missing Object Methods?

2004-02-13 Thread Morbus Iff
. * You're starting a new project under mod_perl. What would your starting configuration look like, recognizing the PerlRun and Registry are "horrible hacks"? -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com

Re: Shared Module Vars, Missing Object Methods?

2004-02-13 Thread Morbus Iff
onfirm children caching? What would I learn from confirming or denying the behavior under -X? Thanks for the reply. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/059600577

Shared Module Vars, Missing Object Methods?

2004-02-13 Thread Morbus Iff
s. Why it can't be found perplexes me: enough reloads later, and database access is working just fine. This doesn't sound like caching whatsoever. Any ideas? I'm stymied. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegren