Subject: | Can't decipher error |
I put together a small program with this snippet to see if I could work out how to use your module:
my $tree = Tree::Family->new(filename => '/tmp/dddddd');
my $root = Tree::Family::Person->new(name => $firstname);
if($mother) {
my $m = Tree::Family::Person->new(name => 'Mother');
$root->mom($m);
$tree->add_person($m);
}
if($father) {
my $f = Tree::Family::Person->new(name => 'Father');
$root->dad($f);
$tree->add_person($f);
}
$tree->add_person($root);
However I get this message which I can't work out how to fix:
generation for Tree::Family::Person=SCALAR(0x7f832ff86a50) or Tree::Family::Person=SCALAR(0x7f832ed44170) not set at /Users/njh/perl5/perlbrew/perls/perl-5.23.5/lib/site_perl/5.23.5/Tree/Family.pm line 316, <GEN0> line 133.