Subject: | use $c->req->params->param instead of $c->param |
To get POST+GET param it's better to use $c->req->params->param.
Problem is, $c->param is unreliable crap. It's filled in this way:
1) append POST params (multivalues supported);
2) append GET params (multivalues supported);
3) replace with UPLOAD params (multivalues supported);
4) replace with ROUTE params which doesn't match reserved stash values (multivalues not supported, last value used).
The $c->req->param is currently same as $c->req->params->param, but I won't be surprised if one day UPLOAD params start replacing POST+GET values in $c->req->param, so it's better to avoid that too.