perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r219801 - /perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod
Date Tue, 19 Jul 2005 23:11:04 GMT
Author: geoff
Date: Tue Jul 19 16:10:59 2005
New Revision: 219801

URL: http://svn.apache.org/viewcvs?rev=219801&view=rev
Log:
remove bogus

  my @values = $r->dir_config($key);

syntax.  this isn't how it used to work in mp1, a user
reported it doesn't work in mp2, and there are no tests
for it in the mp2 test suite, so if it really does work
prove it :)


Modified:
    perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod

Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod
URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod?rev=219801&r1=219800&r2=219801&view=diff
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod Tue Jul 19 16:10:59 2005
@@ -19,7 +19,7 @@
   $content_type = $r->default_type();
   
   # get PerlSetVar/PerlAddVar values
-  @values = $r->dir_config($key);
+  @values = $r->dir_config->get($key);
   
   # get server docroot
   $docroot = $r->document_root();
@@ -228,7 +228,7 @@
 
   $table  = $r->dir_config();
   $value  = $r->dir_config($key);
-  @values = $r->dir_config($key);
+  @values = $r->dir_config->get($key);
   $r->dir_config($key, $val);
 
 =over 4
@@ -263,14 +263,6 @@
 methods. For available methods see
 the C<L<APR::Table|docs::2.0::api::APR::Table>> manpage.
 
-  @values = $r->dir_config($key);
-
-If the C<$key> argument is passed in the list context a list of all
-matching values will be returned. This method is ineffective for big
-tables, as it does a linear search of the table. Thefore avoid using
-this way of calling dir_config() unless you know that there could be
-more than one value for the wanted key and all the values are wanted.
-
   $value = $r->dir_config($key);
 
 If the C<$key> argument is passed in the scalar context only a single
@@ -279,6 +271,11 @@
 assosiated with the desired key is returned. Calling in the scalar
 context is also much faster, as it'll stop searching the table as soon
 as the first match happens.
+
+  @values = $r->dir_config->get($key);
+
+To receive a list of values you must use C<get()> method from the
+C<L<APR::Table|docs::2.0::api::APR::Table>> class.
 
   $r->dir_config($key => $val);
 



---------------------------------------------------------------------
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