You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by ap...@apache.org on 2009/01/14 04:29:26 UTC

svn commit: r734313 - /perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod

Author: aprime
Date: Tue Jan 13 19:29:26 2009
New Revision: 734313

URL: http://svn.apache.org/viewvc?rev=734313&view=rev
Log:
updated ServerUtil's dir_config documentation
you have to use the APR::Table's get routine, not just list context

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

Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod
URL: http://svn.apache.org/viewvc/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod?rev=734313&r1=734312&r2=734313&view=diff
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod Tue Jan 13 19:29:26 2009
@@ -200,7 +200,7 @@
 
   $table  = $s->dir_config();
   $value  = $s->dir_config($key);
-  @values = $s->dir_config($key);
+  @values = $s->dir_config->get($key);
   $s->dir_config($key, $val);
 
 =over 4
@@ -233,13 +233,10 @@
 object can be manipulated via the I<APR::Table> methods. For available
 methods see I<APR::Table>.
 
-  @values = $s->dir_config($key);
+  @values = $s->dir_config->get($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.
+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.
 
   $value = $s->dir_config($key);
 



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