in reply to Re: Alternative to CGI.pm
in thread Alternative to CGI.pm

Here is an example of using Plack to capture form queries:
use Data::Dumper; use Plack::Request; use Plack::Response; my $app = sub { my $req = Plack::Request->new(shift); my $query = $req->parameters; my $res = Plack::Response->new(200); $res->body('<pre>' . Dumper($query) . '</pre>'); $res->finalize; };