NAME
Apache::Tie - Tie interfaces to Apache structures
SYNOPSIS
my $headers_out = $r->headers_out;
while(my($key,$val) = each %$headers_out) {
...
}
my $table = $r->headers_out;
$table->set(From => 'dougm@perl.apache.org');
Mod_perl have to be compiled with 'perl Makefile.PL PERL_TIE_TABLES=1' or EVERYTHING=1 for this to work.
DESCRIPTION
This module provides tied interfaces to Apache data structures.
CLASSES
- Apache::TieHashTable
-
The Apache::TieHashTable class provides methods for interfacing with the Apache
tablestructure. The following Apache class methods, when called in a scalar context with no "key" argument, will return a HASH reference blessed into the Apache::TieHashTable class and where HASH is tied to Apache::TieHashTable:headers_in headers_out err_headers_out notes dir_config subprocess_env
METHODS
- get
-
Corresponds to the
ap_table_getfunction.my $value = $table->get($key); my $value = $headers_out->{$key}; - set
-
Corresponds to the
ap_table_setfunction.$table->set($key, $value); $headers_out->{$key} = $value; - unset
-
Corresponds to the
ap_table_unsetfunction.$table->unset($key); delete $headers_out->{$key}; - clear
-
Corresponds to the
ap_table_clearfunction.$table->clear; %$headers_out = (); - add
-
Corresponds to the
ap_table_addfunction.$table->add($key, $value); - merge
-
Corresponds to the
ap_table_mergefunction.$table->merge($key, $value);
AUTHOR
Doug MacEachern
SEE ALSO
Apache(3), mod_perl(3)
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 59:
You forgot a '=back' before '=head2'
- Around line 109:
=back without =over