in reply to Re: mod_perl query string puzzle
in thread mod_perl query string puzzle

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.

Replies are listed 'Best First'.
Re^3: mod_perl query string puzzle
by Anonymous Monk on Mar 08, 2011 at 14:16 UTC

    Do like this to make it happen

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