cholet 00/05/16 07:48:40
Modified: Apache Apache.pm
Log:
document global Apache variables
Revision Changes Path
1.49 +30 -0 modperl/Apache/Apache.pm
Index: Apache.pm
===================================================================
RCS file: /home/cvs/modperl/Apache/Apache.pm,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- Apache.pm 2000/05/05 08:10:39 1.48
+++ Apache.pm 2000/05/16 14:48:40 1.49
@@ -1116,6 +1116,36 @@
=back
+=head1 GLOBAL VARIABLES
+
+=over 4
+
+=item $Apache::Server::Starting
+
+Set to true when the server is starting.
+
+=item $Apache::Server::ReStarting
+
+Set to true when the server is starting.
+
+=item $Apache::Server::ConfigTestOnly
+
+Set to true when the server is running in configuration test mode
+(C<httpd -t>).
+
+ <Perl>
+ # don't continue if it's a config test!
+ print("Skipping the <Perl> code!\n"),
+ return if $Apache::Server::ConfigTestOnly;
+
+ print "Running the <Perl> code!\n"
+ # some code here
+
+ </Perl>
+
+
+=back
+
=head1 SEE ALSO
perl(1),