in reply to Direferencing problem
Update: if the above works this is how you could get the list of IDs:# $artfList - a hash reference my $array = $artfList->{dataRows}; for my $row_object (@$array) { my $id = $row_object->getId; my $category = $row_object->getCategory; print "ID: $id, Category: $category\n"; }
Or if you want to be fancy and do it all in one line:my @ids; for my $row_object (@$array) { push( @ids, $row_object->getId ); }
my @ids = map { $_->getId } @{ $artfList->{dataRows} };
|
|---|