Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
具体来说,我试图将支付网关的所有 POST 参数作为单个字符串捕获,然后解析它们以查找字符串“错误”。
我知道有一种$c->request->parameters方法,但我不太确定它是如何使用的,而且我无法从 CPAN 文档中弄清楚。
$c->request->parameters
它返回带有必要数据的哈希引用
my $hashref = $c->request->parameters;
一个表格:
<input type="text" name="username" value="joe" />
会导致 hashref 像:
my $hashref = { username => "joe", };