[Catalyst] Re: retrieving multiple values from forms
kevin montuori
montuori at gmail.com
Tue Dec 18 15:50:35 GMT 2007
>>>>> "je" == jagdish eashwar <jagdish.eashwar at gmail.com> writes:
>> So I changed the code to read "@role_id =
>> $c->req->params(role_id)" as Kevin suggested and put \@role_id in
>> the stash. Now there was no error, but I got "ARRAY(0x987e5e0)" in
>> the template instead of the role_id values.
i dare say that's not what i'd suggested. i wrote:
my @titles = ref $c->request->params->{title}
? @{ $c->request->params->{title} } : ($c->request->params->{title} || '');
the @{ ... } bit was not extraneous.
(on the other hand, if there's a more idiomatic way of doing this i'd
love to hear about it.)
but this is not a catalyst issue, 'perldoc perlref' for more on
references.
cheers.
k.
--
kevin montuori
More information about the Catalyst
mailing list