in reply to mod_perl query string puzzle

Not sure what you mean by "key=value"? args should be getting called with list context, and should return a list of alternating keys and values. Is this what it does?

Replies are listed 'Best First'.
Re^2: mod_perl query string puzzle
by johnnywang (Priest) on Jul 31, 2004 at 08:23 UTC
    Thanks, That's what it's supposed to do, but it's not doing that for me. For example, if the get is for: http://localhost/foo?user=abc&id=234, in array context, $r->args() should contain an array: ('user','abc','id','234'), but it contains ('user=abc&id=23'), basically it didn't split it.

      Do like this to make it happen

      my $arguments = $r->args; my %currargs = map { split("=",$_) } split(/&/, $arguments);