https://<server_name>/getparam?h1=hello&h2=goodbye
get 'getparam' => sub {
my $c = shift;
print $c->param('h1') . "\n"; # THIS WORKS AS I WOULD EXPECT
my @list_of_all_params = $c->param; # DOES NOT WORK and THIS IS WHAT I WOULD LIKE TO MAKE WORK
return 1;
};
所以我真正想要的是@list_of_all_params 包含“h1”和“h2”这是使用传递的参数: https://<server_name>/getparam?h1=hello&h2=goodbye
提前感谢大家!