I have a hard time following all this narrative. I need code examples, the app
files preferably.
If it were me, I'd try and get my app back to the place it was before I started
moving files around and changing the param values. You might just try re-running
your rdgc.pl script to re-generate the app and then diff the newly generated
files against your existing ones.
Alternately, the debugging approach I take is to set a couple of environment
variables when you run the myapp_server.pl test server and see if stderr
messages might help.
% PERL_DEBUG=1 RHTMLO_DEBUG=1 perl script/myapp_server.pl
When you move your RDBO-based files out of the app directory, you shouldn't have
to change their 'package' (class) names. Unless of course you feel you need to.
But then you should understand what you're doing. My guess is that you're really
not grokking the relationship between @INC and the package names in each .pm
file. Until you do, you'll be shooting in the dark.
For example:
package MyApp::Foo::Bar;
1;
could be the contents of a file in:
myapp/lib/MyApp/Foo/Bar.pm
but it could just as easily be the contents of a file in:
somewhere/else/MyApp/Foo/Bar.pm
and if @INC was:
@INC = ('myapp/lib', 'somewhere/else');
then when perl tries to compile this:
use MyApp::Foo::Bar;
it's going to look first in 'myapp/lib' and stop, because it found a package
there by that name.
If you moved your .pm files, but you didn't change the package name, then your
@INC settings are likely affecting which files perl is loading and using.
--
Peter Karman . http://peknet.com/ . pe...@peknet.com