# 名称
# 简介
使用Mojo::服务器::CGI; my$cgi=Mojo::Server::cgi->new; $cgi->unsubscribe(“请求”)->on(请求=>sub($cgi,$tx){ #请求 我的$method=$tx->req->方法; 我的$path=$tx->req->url->path; #响应 $tx->res->code(200); $tx->res->headers->content_type('text/plain'); $tx->res->body(“$path!的$method请求”); #恢复交易 $tx->简历; }); $cgi->run;
# 描述
# 活动
# 属性
# 净功率因数
我的$bool=$cgi->nph; $cgi=$cgi->nph($bool);
# 方法
# 运行
我的$status=$cgi->run;