[Catalyst] retrieving multiple values from forms
Andrew Rodland
arodland at comcast.net
Mon Dec 17 21:31:24 GMT 2007
On Monday 17 December 2007 03:01:53 pm Matt S Trout wrote:
> On Sat, Dec 15, 2007 at 01:10:52PM -0600, Andrew Rodland wrote:
> > See the perldoc for Catalyst::Request -- the 'param' method comes in
> > handy here.
> >
> > @values = $c->req->param('whatever');
>
> No it doesn't.
>
> That method is there for CGI.pm compatibility. Don't use it in new code.
It's also the only one that has a sensible semantic. "Might be an unblessed
scalar or an arrayref" is silly for something that's naturally a _list_. If
param wasn't there I would have to write a method that did the same thing,
and use that.
Andrew
More information about the Catalyst
mailing list