Gedcom::Family - a module to manipulate Gedcom families
Version 1.17 - 29th December 2012
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);
A selection of subroutines to handle families in a gedcom file.
Derived from Gedcom::Record.
None.
None yet.
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.
my $nch = $f->number_of_children;
Return the number of children in the family, as specified or from counting.
$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.
To install Gedcom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gedcom
CPAN shell
perl -MCPAN -e shell install Gedcom
For more information on module installation, please visit the detailed CPAN module installation guide.