Style tip: you almost never need to assign 0 or 1 to a variable. Just evaluate the value in the bool context.
CGI.pm(CGI) param POST GET,
use strict;
use warnings FATAL => 'all';
use CGI qw();
my $c = CGI->new;
print $c->header('text/plain');
if ('POST' eq $c->request_method && $c->param('dl')) {
} else {
}
print 'Do not taunt happy fun CGI.';
Plack:: Request (PSGI) POST (body_parameters) GET (query_parameters) (parameters):
use strict;
use warnings FATAL => 'all';
use Plack::Request qw();
my $app = sub {
my ($env) = @_;
my $req = Plack::Request->new($env);
if ($req->body_parameters->get_all('dl')) {
} else {
}
return [200, [Content_Type => 'text/plain'], ['Do not taunt happy fun Plack.']];
};