perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgollu...@apache.org
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

URL: http://svn.apache.org/viewcvs?rev=358389&view=rev
Log:
Submitted By: Frank Wiles <frank@wiles.org>

Get rid of another META for PerlSetVar


Modified:
    perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod

Modified: perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod
URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod?rev=358389&r1=358388&r2=358389&view=diff
==============================================================================
--- 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
 location|/mod_perl_Directives_Argument_Types_and_Allowed_Location>.



---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message