logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Gedcom::Family - a module to manipulate GEDCOM families

Description

       A selection of subroutines to handle families in a GEDCOM file.

       Derived from Gedcom::Record.

Hash Members

       None.

Methods

       None yet.

   Individualfunctions
         my @rel = $f->husband;
         my @rel = $f->wife;
         my @rel = $f->parents;
         my @rel = $f->children;
         my @rel = $f->boys;
         my @rel = $f->girls;

       Return a list of individuals from family $f.

       Each function, even those with a singular name such as husband(), returns a list of individuals holding
       that relation in $f.

   number_of_children
         my $nch = $f->number_of_children;

       Return the number of children in the family, as specified or from counting.

   Addfunctions
         $f->add_husband($i);
         $f->add_wife($i);
         $f->add_child($i);

       Add the specified individual to the family in the appropriate position.

       These functions also take care of the references from the individual back to the family, and are to be
       preferred to the low level addition functions which do not do this.

perl v5.36.0                                       2022-10-16                                Gedcom::Family(3pm)

Name

       Gedcom::Family - a module to manipulate GEDCOM families

       Version 1.22 - 15th November 2019

Synopsis

         use Gedcom::Family;

         my @rel = $f->husband;
         my @rel = $f->wife;
         my @rel = $f->parents;
         my $nch = $f->number_of_children;
         my @rel = $f->children;
         my @rel = $f->boys;
         my @rel = $f->girls;
         $f->add_husband($i);
         $f->add_wife($i);
         $f->add_child($i);

See Also