I don't remember where it's documented, but you can use
$c->req->body_params->to_hash. Instead of ->body_params you can use
->query_params for URL parameters, or ->params for both combined; each of
these gives you a Mojo::Parameters object with a to_hash method.

On Tue, Apr 4, 2017 at 7:46 PM, iaw4 <[email protected]> wrote:

>
> trivial quickie:  how do I retrieve post-ed parameters into a hash?  it is
> not *$c->param->to_hash()* or something similarly obvious.  (it also
> isn't in the faq or the cookbook or the tutorial.)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to