Looks like what I needed (if works) but with a lot of editting: use Module1, use Module2, ..., use ModuleN.
Thanks. Harry ----- Original Message ----- From: "Jonathan Vanasco" <[EMAIL PROTECTED]> To: "Harry Zhu" <[EMAIL PROTECTED]> Cc: "mod_perl List" <modperl@perl.apache.org> Sent: Wednesday, February 22, 2006 3:53 PM Subject: Re: find all uninitialized variables? > if you > use strict ; > use warnings; > > any module that you load w/an uninitialized variable will print an error > > what i do is as follows: > > use warnings & strict in $APP_DIR/etc/startup.pl > include all my modules in $APP_DIR/etc/startup.pl > > tail -f $APP_DIR/logs/error.log > > sudo /usr/local/apache2/bin/apachectl restart > > that will try and include all the modules i listed in startup.pl > > if there's an uninitialized value, apache won't start up, and it will > tell me the line. > i fix that, and try to start apache again > > if you preload, you don't have to run through the pages - but it > will crash on the first variable > > > On Feb 22, 2006, at 6:37 PM, Harry Zhu wrote: > > > Say I have a file directory with hundreds of modules, I want to > > know if there is a tool I can scan and identify the uninitalized > > variables in all the files once (or through a loop) without > > actually running through all the pages. > > > > Harry > >