lib/App/read_httpd_conf.pm
changeset 12 cf75cb35c083
parent 11 478ef471fb71
child 13 bbb0dea458c3
child 15 26b84b6da139
--- a/lib/App/read_httpd_conf.pm	Wed Jul 16 22:28:25 2014 +0200
+++ b/lib/App/read_httpd_conf.pm	Wed Jul 16 23:37:06 2014 +0200
@@ -39,3 +39,32 @@
 }
 
 1;
+
+__END__
+
+=head1 NAME
+
+ App::read_httpd_conf
+
+=head1 SYNOPSIS
+
+ use App::read_httpd_conf;
+ App::read_httpd_conf->main($file);
+
+=head1 DESCRIPTION
+
+This small package reads the apache config file and writes the parsed
+and included files to the standard file descriptor. If you want to proceess
+the output in your own script, do something like this:
+
+  my $output;
+  open(my $fh, '>', \$output);
+  my $oldfh = select($fh); 
+  App::read_httpd_conf->read_file($config));
+  select($oldfh);
+
+=head1 AUTHOR
+
+Heiko Schlittermann L<hs@schlittermann.de>
+
+=cut