in reply to access object values
The best way to drill that down is to follow the classes of the objects.
In code:
use 5.020; my @answers = $obj->answer; for my $answer (@answers) { if ($answer->type eq 'PTR') { $ptrdname = $answer->ptrdname; } } say $ptrdname;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: access object values
by averlon (Sexton) on Jun 05, 2023 at 11:13 UTC |