On Wednesday 26 July 2006 15:13, Jim Babcock wrote: > So far I'm using Data Dumper on the PM and CGI sides and using various > print statements in the PM and I haven't made any headway.
Not related suggestion: I find Data::Dumper::Simple more useful than Data::Dumper. > I think that > something may have been caching even though I restart apache each time I > make a change to the PM, because I was getting out of date data when I > dumped the object. I do an opendir as the basis to getting the data and put > an "or die 'dead'" on the end. It didn't fire on failure at first, but once > I got past the caching thing, it started showing up when the system failed. Make sure the user apache is running as has permissions on whatever file/directory you are trying to open. I'm not sure what the problem is from your post as it sounds like you have a method for tracking the problem (as much as the 'print' method is simple, it's often useful). You do have to be aware of the caching issue though. One solution to that is to disable your PostConfigRequire (if you have one) and set MaxRequestsPerChild to one. That way it'll spawn a new child for each request and save you restarting. (Obviously you wouldn't do this for production). > Also, I'm pretty thourogh about testing the perl modules with test scripts, > testing for results over many iterations, but it is apparent that I need > similar testing of the pm/cgi/apache/mod_perl/mason components working as a > whole. Can anyone point me at some documents discussing best or even good > practices for this? There's Apache::Test (http://search.cpan.org/dist/Apache-Test/), which is designed to help test things that require apache to run. -- "Your only obligation in any lifetime is to be true to yourself. Being true to anyone else or anything else is ... impossible." - Richard Bach ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users