is it just $req->param that is a const, or are both args and body const as well?
Is there an easy (ie one line) way to rip the entire contents of
$req->param into a hash I can actually modify the contents of, or do i
need to do that myself? Personally, i did stuff like that quite a bit
in mp1.
Adam
On 7/11/05, Joe Schaefer <[EMAIL PROTECTED]> wrote:
> "Philip M. Gollucci" <[EMAIL PROTECTED]> writes:
>
> > You're saying I can't do:
> > sub handler {
> >
> > my $r = shift;
> > my $req = Apache2::Request->new($r);
> > my $FORM = $req->param;
> > $FORM->{foo} = 'bar'; ### line 20
>
> Right- that's no longer allowed.
>
> > Is this because of the underlying APR implementation,
> > or has the tied hash STORE function just not been
> > implemented yet?
>
> The underlying C implementation is a const apr_table_t *
> (see apreq_module.h). So technically we shouldn't implement
> a STORE method on that.
>
> --
> Joe Schaefer
>
>