Subject: | Documentation: how to pick of multiple values for an attribute |
Picking out nested attribute values like members. I could not get this to work and resorted to the dump() method. I used something like this:
if ($k1->attribute_is_list($a)) {
$num=$k1->$a; # $a is attribute name
if (defined $num) { # has a value; eg defined
print scalar(@$num)."\n"; # this shows the number of members
# As I could not work out how to get to the values I used dump()
Can documentation be updated on how to do this?