httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Apache::Request segfault with $self->args and an array
Date Mon, 07 Feb 2005 23:21:32 GMT
Michael Peters <mpeters@plusthree.com> writes:


[...]

> I'm trying to do this -
>
> my $req = Apache::Request->new($r);
> $req->args->{foo} = [qw(bar foo)];

Sorry  that won't work with the current codebase.  
You should be able to accomplish something similar 
with

   $req->args->set(foo => "bar");
   $req->args->add(foo => $_) for @extra_foos;

At the moment arrayrefs don't work at all, but
if they did, this is how I think they'd behave.

-- 
Joe Schaefer


Mime
View raw message