[Dbix-class] why is this returning an hash?

Rajeev Prasad rp.neuli at yahoo.com
Thu May 16 03:59:33 GMT 2013


from here=A0 i understood, that if i collect output in array element, i wil=
l get an array.
http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/ResultSet.pm#search

in below, $id is unique in the table, so it returns just one row.

my @item_array =3D $schema->resultset('Mytable')->search(
=A0=A0=A0=A0=A0=A0=A0 { item_id =3D> $id },
=A0=A0=A0=A0=A0=A0=A0 { select=A0=A0 =3D> [qw/item_status/] }
=A0=A0=A0=A0=A0=A0=A0 );
print "print array =3D at item_array\n";


=A0./test.pl
node status=3DDb::Schema::Result::Mytable=3DHASH(0x17b9cf8)
$


I actually/finally=A0 want to get the value of an specific column by supply=
ing $id. not sure how to get that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20130515/39e=
bc62e/attachment.htm


More information about the DBIx-Class mailing list