[Catalyst] has something like DBI's fetchrow_hashref()?

Wan wanmyome at gmail.com
Mon Dec 18 12:32:57 GMT 2006


hello everyone,

I use DBIx::Class in my Catalyst project.

my $cfg = $c->model('RTDB::Config')->search({Name =>
$c->req->param("name")})->first;

......
$cfg->Name;
$cfg->Value;

I want to get a hash ref that like this

.....
$cfg->{Name};
$cfg->{Value};

Thanks for any help




More information about the Catalyst mailing list