Created
March 10, 2009 16:50
-
-
Save damog/76983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Apache2::Request::NG; | |
use Modern::Perl; | |
use Apache2::Request; | |
our @ISA = qw(Apache2::Request); | |
sub new { | |
my($class, @args) = @_; | |
return bless { r => Apache2::Request->new(@args) }, $class; | |
} | |
sub query { | |
my($self) = shift; | |
my @table = $self->param; | |
my @st; | |
for my $k (@table) { | |
push @st, { $k => $self->param($k) } | |
} | |
\@st; | |
} | |
sub query_string { | |
my($self) = shift; | |
join '&', map { my($k, $v) = each %{$_}; "$k=$v"} @{$self->query}; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment