Gedcom::Family(3pm)
π Gedcom::Family β the manual, but make it make sense β¨
okay so bestie, you found Gedcom::Family(3pm) in the User Contributed Perl Documentation and you're like "what is this" β don't worry, I got you. No cap, this one's short and sweet. π
πΈ 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);
π¦ DESCRIPTION π¦
A lil selection of subroutines to handle families in a GEDCOM file. Family drama, but in data form. π
Derived from Gedcom::Record. (iconic lineage, honestly π)
π HASH MEMBERS π
None. Nada. Zero. Empty. She said "no hash members today" π
π METHODS π
None yet. Like, truly none. Moving on bestie π«Ά
π Individual functions
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. π
The way that every single one of these functions β even the ones with a singular name like husband() β returns a list of individuals holding that relation in $f. Yes, even the singular ones. Not one, a list. Periodt. β¨
π₯ number_of_children
my $nch = $f->number_of_children;
Return the number of children in the family, as specified or from counting. Either way, you get the number, bestie. π
π Add functions
$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 β like, they do the mutual-follow thing for you π₯° β and are to be preferred to the low level addition functions which do not do this.
ngl, use these ones. The low level ones skimp on the back-references and you'll be out here with one-sided relationships. Use the add_* functions, iykyk π
and that's the whole vibe, babe β Gedcom::Family(3pm), perl v5.36.0, dated 2022-10-16. that's a wrap, go manipulate some families πΈπβ¨
π¦ where this page comes from
- ubuntu noble: libgedcom-perl 1.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgedcom-perl 1.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgedcom-perl 1.22-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms