NAME

Apache::ExtUtils - Utils for Apache:C/Perl glue

SYNOPSIS

use Apache::ExtUtils ();

DESCRIPTION

Just one method at the moment:

use IO::File ();
use Apache::ExtUtils ();

my @directives = qw(MyDirective);
my $fh = IO::File->new(">My/Module/Module.xs") or die $!

print $fh Apache::ExtUtils->xs_cmd_table("My::Module", \@directives);

This example will generate a .xs file which declares an Apache C module for the My::Module class. It is used simply to allow Perl modules to add their own directives to Apache, rather than use PerlSetVar. When the directive is encountered in a config file, a Perl subroutine of the same name in the My::Module class is called and passed the arguments as perl TAKE123.

AUTHOR

Doug MacEachern