I try to add new param to Apache2::Reques and i have this error
Can't locate object method "add" via package "APR::Request::Param::Table"
this is my code
$req = Apache2::Request->new();
$req->body->add(new_param => "value");
help say this
$req->param("foo" => "bar"); # NO: usage error in 2.X
$req->args->{foo} = "bar"; # OK: assign to args table
$req->body->add(foo => "bar"); # OK: add to body table
$req->param->add(foo => "bar"); # NO: this is an
expensive noop,
# because the param
table is
# generated by
overlaying $req->args
# and $req->body.
my $params = $req->param;
$params->set(foo => "bar"); # OK: sets "foo" entry
in $params, which
# is a local (args +
body) table. Neither
# $req->args,
$req->body, nor future calls
# to $req->param, are
affected by mods to
# $params.
What is the error?
thanks on advantage
Unidos por un Mexico Democratico. www.eleccion2006.com