stas 2002/06/20 09:56:13 Modified: src/docs/2.0/user/coding coding.pod Log: horray! this now works in 5.8.0: use warnings FATAL => 'all', NONFATAL => 'redefine'; Revision Changes Path 1.12 +14 -9 modperl-docs/src/docs/2.0/user/coding/coding.pod Index: coding.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/coding/coding.pod,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- coding.pod 19 Jun 2002 19:29:49 -0000 1.11 +++ coding.pod 20 Jun 2002 16:56:13 -0000 1.12 @@ -69,9 +69,9 @@ MPM, otherwise it prints the process id. -=head1 Developing Modules +=head1 Code Developing Nuances -=head1 Apache::Reload +=head2 Auto-Reloading Modified Modules with Apache::Reload META: need to port Apache::Reload notes from the guide here. but the gist is: @@ -89,22 +89,27 @@ use strict; use warnings FATAL => 'all'; -C<FATAL =E<gt> 'all'> escalate all warnings into fatal errors. So when -C<Apache::Whatever> is modified and reloaded by C<Apache::Reload> the -request is aborted. Therefore if you follow this very healthy style -and want to use C<Apache::Reload>, flex the strictness by changing it -to: +C<FATAL =E<gt> 'all'> escalates all warnings into fatal errors. So +when C<Apache::Whatever> is modified and reloaded by C<Apache::Reload> +the request is aborted. Therefore if you follow this very healthy +style and want to use C<Apache::Reload>, flex the strictness by +changing it to: use warnings FATAL => 'all'; no warnings 'redefine'; -but if you still want the I<redefine> warnings, but so they won't be -fatal: +but you probably still want to get the I<redefine> warnings, but +reduce them to be non-fatal. The following will do the trick: use warnings FATAL => 'all'; no warnings 'redefine'; use warnings 'redefine'; +Perl 5.8.0 allows to do all this in one line: + + use warnings FATAL => 'all', NONFATAL => 'redefine'; + +Refer to the I<perllexwarn> manpage for more information. =head1 Perl Specifics in mod_perl Environment
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]