Re: [Dbix-class] select specific columns on resultset

2013-04-10 Thread max
, max wrote: Thanks for the answer, this piece of code is inside a perl sub, I tried to extract the array elements as: foreach my $row (@recs) { my $id=$row-id; my $name=$row-Name; print MYFILE recs name: $name, id: $id\n\n; } and I can see the Name element for example. Well

[Dbix-class] select specific columns on resultset

2013-04-09 Thread max
Hi all, I'm new to DBIx, I'm trying to retrieve only a subset of columns from a result set: my @recs=$self-db-resultset($self-table)-search({},{columns = [qw/ id Name OperationId Name /],},)-all; but the result contains all the columns, I also tried with the select attribute with the same

Re: [Dbix-class] select specific columns on resultset

2013-04-09 Thread max
in the sub ouputting it to a file but it's always empty ( $self-db-storage-debugfh(IO::File-new('file','w'));), is there another way to use it ? 2013/4/9 Peter Rabbitson rabbit+d...@rabbit.us On Tue, Apr 09, 2013 at 03:19:07PM +0200, max wrote: Hi all, I'm new to DBIx, I'm trying to retrieve only