gozer       2004/09/14 10:07:55

  Modified:    src/docs/2.0/api/Apache Directive.pod
  Log:
  Add an example for Apache::Directive $node->as_string;
  
  Revision  Changes    Path
  1.11      +17 -1     modperl-docs/src/docs/2.0/api/Apache/Directive.pod
  
  Index: Directive.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/Directive.pod,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Directive.pod     14 Sep 2004 00:20:50 -0000      1.10
  +++ Directive.pod     14 Sep 2004 17:07:55 -0000      1.11
  @@ -153,7 +153,7 @@
   =head2 C<as_string>
   
   Get a string representation of the configuration node, in
  -F<httpd.conf> format. This does not traverse down to sub-trees.
  +F<httpd.conf> format.
   
      $string = $node->as_string();
   
  @@ -170,7 +170,23 @@
   
   =back
   
  +For example: in F<httpd.conf>:
   
  +  <Location /test>
  +    SetHandler perl-script
  +    PerlHandler Test::Module
  +  </Location>
  +
  +And later:
  +
  +  my $tree = Apache::Directive->conftree;
  +  my $node = $tree->lookup('Location', '/test/');
  +  my $string = $node->as_string;
  +
  +C<$string> is now:
  +
  +  SetHandler perl-script
  +  PerlHandler Test::Module
   
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to