[Catalyst] retrieving multiple values from forms

Andrew Rodland arodland at comcast.net
Sat Dec 15 19:10:52 GMT 2007


On Saturday 15 December 2007 11:58:12 am jagdish eashwar wrote:
> Hi,
>
> The Catalyst Tutorial shows how to retrieve single values from a form.
>
> Example:- my $title = $c->request->params->{title} || '';
>
> How can I retrieve multiple values from a selection list into an array?


See the perldoc for Catalyst::Request -- the 'param' method comes in handy 
here.

@values = $c->req->param('whatever');



More information about the Catalyst mailing list