Gedcom::Family(3pm)

πŸ“¦
version 1.22 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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