in reply to access object values

Hi, I think you want

my $aref = $obj->answer->[0]->ptrdname->label;
To get the second label:
my $aref = $obj->answer->[0]->ptrdname->label->[1];

Hope this helps!


The way forward always starts with a minimal test.