perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r358389 - /perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod
Date Wed, 21 Dec 2005 21:28:46 GMT
Author: pgollucci
Date: Wed Dec 21 13:28:42 2005
New Revision: 358389

Submitted By: Frank Wiles <>

Get rid of another META for PerlSetVar


Modified: perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod
--- perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod Wed Dec 21 13:28:42 2005
@@ -652,7 +652,20 @@
 =head2 C<PerlSetVar>
-  META: to be written
+C<PerlSetVar> allows you to pass variables into your mod_perl handlers from
+your I<httpd.conf>. This method is preferable to using C<PerlSetEnv> or
+Apache's C<SetEnv> and C<PassEnv> methods because of the overhead of having
+to populate C<%ENV> for each request. An example of how this can be used is:
+    PerlSetVar foo bar
+To retrieve the value of that variable in your Perl code you would use:
+    my $foo = $r->dir_config('foo');
+In this example C<$foo> would then hold the value 'bar'. B<NOTE:> that these
+directives are parsed at request time which is a slower method than using
+L<custom Apache configuration directives|docs::2.0::user::config::custom>
 See also: L<this directive argument types and allowed

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message