>Alrighty. I've yet to figure out what my ->connect problem [1] is. >All my settings caching problems have been fixed, as I've yet to >duplicate the issue in about 300 to 400 loads. Anywhere I should >look? What I know: > >[1] http://groups.yahoo.com/group/modperl/message/57303 > Program fragment delivered error ``Can't locate object > method "connect" via package "LibDB::DB::MySQL".
How does mod_perl handle evals? Since LibDB::DB determines what database module to load at runtime, it "eval"'s this selection:
# if it exists, bless ourselves into its class. eval "use LibDB::DB::$user_dbtype"; # load this class into memory. my $self = bless { _error => '' }, "LibDB::DB::$user_dbtype";
I don't, however, do any error checking on that eval. It seems that if 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? <g>
/me searches the mod_perl docs for mentions of eval.
-- 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
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html