
pgollucci at apache
Dec 21, 2005, 1:28 PM
Post #1 of 1
(858 views)
Permalink
|
|
svn commit: r358389 - /perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod
|
|
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 [at] wiles> 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 [at] perl For additional commands, e-mail: docs-cvs-help [at] perl
|