libapache2-mod-perl2-2.0.7::docs::api::APR::Table(3pm) User Contributed Perl Documentation libapache2-mod-perl2-2.0.7::docs::api::APR::Table(3pm)
NAME
APR::Table - Perl API for manipulating APR opaque string-content tables
Synopsis
use APR::Table ();
$table = APR::Table::make($pool, $nelts);
$table_copy = $table->copy($pool);
$table->clear();
$table->set($key => $val);
$table->unset($key);
$table->add($key, $val);
$val = $table->get($key);
@val = $table->get($key);
$table->merge($key => $val);
use APR::Const -compile qw(:table);
$table_overlay = $table_base->overlay($table_overlay, $pool);
$table_overlay->compress(APR::Const::OVERLAP_TABLES_MERGE);
$table_a->overlap($table_b, APR::Const::OVERLAP_TABLES_SET);
$table->do(sub {print "key $_[0], value $_[1]
"}, @valid_keys);
#Tied Interface
$value = $table->{$key};
$table->{$key} = $value;
print "got it" if exists $table->{$key};
foreach my $key (keys %{$table}) {
print "$key = $table->{$key}
";
}
Description
"APR::Table" allows its users to manipulate opaque string-content tables.
On the C level the "opaque string-content" means: you can put in '