=head1 NAME Apache2::Command - Perl API for accessing Apache module command information =head1 Synopsis use Apache2::Module (); use Apache2::Command (); my $module = Apache2::Module::find_linked_module('mod_perl.c'); for (my $cmd = $module->cmds; $cmd; $cmd = $cmd->next) { $cmd->args_how(); $cmd->errmsg(); $cmd->name(); $cmd->req_override(); } =head1 Description C provides the Perl API for accessing Apache module command information =head1 API C provides the following functions and/or methods: =head2 C What the command expects as arguments: $how = $cmd->args_how(); =over 4 =item obj: C<$cmd> ( C> ) =item ret: C<$how> ( C> ) The flag value representing the type of this command (i.e. C, C). =item since: 2.0.00 =back =head2 C Get I message for that command, in case of syntax errors: $error = $cmd->errmsg(); =over 4 =item obj: C<$cmd> ( C> ) =item ret: C<$error> ( string ) The error message =item since: 2.0.00 =back =head2 C Get the name of this command: $name = $cmd->name(); =over 4 =item obj: C<$cmd> ( C> ) =item ret: C<$name> ( string ) The command name =item since: 2.0.00 =back =head2 C Get the next command in the chain of commands for this module: $next = $cmd->next(); =over 4 =item obj: C<$cmd> ( C> ) =item ret: C<$next> ( C> ) Returns the next command in the chain for this module, C for the last command. =item since: 2.0.00 =back =head2 C What overrides need to be allowed to enable this command: $override = $cmd->req_override =over 4 =item obj: C<$cmd> ( C> ) =item ret: C<$override> ( C> ) The bit mask representing the overrides this command is allowed in (i.e C/C). =item since: 2.0.00 =back For example: use Apache2::Const -compile => qw(:override); $cmd->req_override() & Apache2::Const::OR_AUTHCFG; $cmd->req_override() & Apache2::Const::OR_LIMIT; =head1 See Also L. =head1 Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. =head1 Authors L. =cut