You're correct, siblings is returning an array -- the question is, an
array of what? The answer is, an array of Gedcom::Individual objects --
in other words, $x in your loop is just like $i above, you can call the
name, surname, etc. methods on it.
Try this to see it:
for $x (@array) { print("Sibling (class ".ref($x).") = ".$x->name."\n"); }
Whenever you see "HASH(0x2ab6c30)" or "ARRAY(0xdeadbeef)" in your print
output, that's telling you you're trying to print an object as if it was
a string. ref() is a simple way to find out what kind of object you
have, and Data::Dumper is a simple way to print the object out for
debugging purposes ... just note that the Gedcom classes create objects
that are pretty big (deeply nested).
--
Brent J. Nordquist <
br...@nordist.net>
Other contact information:
http://www.nordist.net/~bjn/contact.html