On Thu, 20 Feb 2003, Stas Bekman wrote: > Nick Tonkin wrote: > > Is it possible to combine the recommended syntax: > > > > use warnings FATAL => 'all', NONFATAL => 'redefine'; > > > > with the ability to turn warnings on in httpd.conf with PerlSwitches -w? > > -w is the same as: > > use warnings 'all'; > > then you can override things in your code using the warnings pragma. > > Though I should add a note that NONFATAL was introduced only in 5.8, so you > probably don't want to use it.
I think that is already clear in the docs at http://perl.apache.org/docs/2.0/user/coding/coding.html#Auto_Reloading_Modified_Modules_with_Apache__Reload I just wanted to know if it was possible to get the same effect somehow using PerlSwitches in httpd.conf -- I guess not. If I put the 'use warnings;' pragma in startup.pl it will be server-wide, though, won't it? - nick -- ~~~~~~~~~~~~~~~~~~~~ Nick Tonkin {|8^)>