Gedcom...vidual(3pm)
π NAME π
Gedcom::Individual β a whole module whose entire job is handling GEDCOM individuals, bestie. Like, one (1) person in your family tree, but make it a whole blessed object.
Version 1.22 β 15th November 2019 β¨
π¦ SYNOPSIS π¦
okay so first you pull the module in, and then it's just vibes and method calls:
use Gedcom::Individual;
my $name = $i->name;
my $cased_name = $i->cased_name;
my $surname = $i->surname;
my $given_names = $i->given_names;
my $soundex = $i->soundex;
my $sex = $i->sex;
my @rel = $i->father;
my @rel = $i->mother;
my @rel = $i->parents;
my @rel = $i->husband;
my @rel = $i->wife;
my @rel = $i->spouse;
my @rel = $i->siblings;
my @rel = $i->half_siblings;
my @rel = $i->brothers;
my @rel = $i->half_brothers;
my @rel = $i->sisters;
my @rel = $i->half_sisters;
my @rel = $i->children;
my @rel = $i->sons;
my @rel = $i->daughters;
my @rel = $i->descendents;
my @rel = $i->ancestors;
my $ok = $i->delete;
my @fam = $i->famc;
my @fam = $i->fams;
πΈ DESCRIPTION πΈ
A curated little selection of subroutines for wrangling individuals inside a GEDCOM file. That's it, that's the whole deal π
She is derived from Gedcom::Record, so she came from somewhere iconic, obviously. π
β¨ HASH MEMBERS β¨
None.
Nothing. Zero. Nada. Not a single one, bestie, no cap. π
π METHODS π
π name
my $name = $i->name;
Hands you back the name of the individual β and yes, the spaces get normalised on the way out. tidy queen. β¨
π cased_name
my $cased_name = $i->cased_name;
Same energy as name, spaces normalised and all, but the surname gets shouted in UPPER CASE. very "MAIN CHARACTER" of the surname honestly. π
π surname
my $surname = $i->surname;
Returns the surname of the individual. just the surname. that's her. π
π given_names
my $given_names = $i->given_names;
Returns the given names of the individual, with spaces normalised. the given names stay lowercase-casual, as they should. πΈ
π soundex
my $soundex = $i->soundex;
Returns the soundex code of the individual. π¦
β οΈ heads up bestie: this function is only available if Text::Soundex.pm is available. no module, no soundex, and that's just the law. π
π sex
my $sex = $i->sex;
Returns the sex of the individual. The options are "M", "F" or "U". three (3) letters carrying the whole vibe check, periodt. π
π«Ά Individual functions π«Ά
my @rel = $i->father;
my @rel = $i->mother;
my @rel = $i->parents;
my @rel = $i->husband;
my @rel = $i->wife;
my @rel = $i->spouse;
my @rel = $i->siblings;
my @rel = $i->half_siblings;
my @rel = $i->older_siblings;
my @rel = $i->younger_siblings;
my @rel = $i->brothers;
my @rel = $i->half_brothers;
my @rel = $i->sisters;
my @rel = $i->half_sisters;
my @rel = $i->children;
my @rel = $i->sons;
my @rel = $i->daughters;
my @rel = $i->descendents;
my @rel = $i->ancestors;
Returns a list of individuals who are related to $i. π
And listen, this is the important part: every function returns a list β even the ones with a singular name like father(). You get a list of individuals holding that relation to $i. Yes, even father. Plural by default, always. π₯
Need something more complicated than that? The map function ate and left no crumbs, fr fr. for example:
my @grandparents = map { $_->parents } $i->parents;
look at her go π§
π delete
my $ok = $i->delete;
Deletes $i out of the data structure. gone. poof. π
This function will also set $i to undef β and that's not her being messy, that's a little reminder that the individual cannot be used again. she's in the past now, bestie. π«Ά
Returns true if $i was successfully deleted. β
π«Ά Family functions π«Ά
my @fam = $i->famc;
my @fam = $i->fams;
Returns a list of families that $i belongs to. π
famc()returns those families in which$iis a child. π§Έfams()returns those families in which$iis a spouse. π
two letters apart, two completely different life stages, iykyk. β¨
and that's the whole page, bestie π this gem is perl v5.36.0, dated 2022-10-16, and it came to you from the User Contributed Perl Documentation crew β go forth and normalise some spaces πβ¨π¦
π¦ 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