[Catalyst] Catalyst::Request::param Bug?

James Tolley james at bitperfect.com
Sat Jun 25 02:42:24 CEST 2005


I think that I've found a bug in the Catalyst::Request shipped with 5.23:

the docs say:

        Get request parameters with a CGI.pm like param method.

            $value  = $c->request->param('foo');
            @values = $c->request->param('foo');
            @params = $c->request->param;

        Shortcut for $req->parameters.

        Returns a reference to a hash containing parameters. Values can be
        either a scalar or a arrayref containing scalars.

            print $c->request->parameters->{field};
            print $c->request->parameters->{field}->[0];

But when I Data::Dumper::Dumper($c->req), I get:

'parameters' => bless( {
    '_groups' => {
        'All' => 1,
        'Primary' => 1
    'name' => 'id',
    'mutator' => 'id',
    'placeholder' => '?',
    'accessor' => 'id'}, 'Class::DBI::Column' ),When (in Hops) there should
be order => 'name', etc.Could I be missing something?Thanks!James

More information about the Catalyst mailing list