Genealogy::Obituary::Lookup
NAME
Genealogy::Obituary::Lookup - Lookup an obituary
VERSION
Version 0.20
SYNOPSIS
Looks up obituaries
use Genealogy::Obituary::Lookup;
my $info = Genealogy::Obituary::Lookup->new();
# ...
SUBROUTINES/METHODS
new
Creates a Genealogy::Obituary::Lookup object.
my $obits = Genealogy::Obituary::Lookup->new();
Accepts the following optional arguments:
-
cache- Passed to Database::Abstraction -
config_filePoints to a configuration file which contains the parameters to
new(). The file can be in any common format includingYAML,XML, andINI. This allows the parameters to be set at run time. -
directoryThe directory containing the file obituaries.sql. If only one argument is given to
new(), it is taken to bedirectory. -
logger- Passed to Database::Abstraction
search
Searches the database.
# Returns an array of hashrefs
my @smiths = $obits->search(last => 'Smith'); # You must at least define the last name to search for
print $smiths[0]->{'first'}, "\n";
Supports two return modes:
-
List contextReturns an array of hash references.
-
Scalar contextReturns a single hash reference, or
undefif there is no match.
FORMAL SPECIFICATION
INPUT
{
'last' => {
type => 'string',
min => 1,
max => 100,
matches => qr/^[\w\-]+$/ # Allow hyphens in surnames
}, 'first' => {
type => 'string',
optional => 1,
min => 1,
max => 100
}, 'middle' => {
type => 'string',
optional => 1,
min => 1,
max => 100
}, 'age' => {
type => 'integer',
optional => 1,
min => 0,
max => 120
}
}
OUTPUT
Argument error: croak No matches found: undef
Scalar context:
{
'type' => 'hashref',
'min' => 1
}
List context:
{
'type' => 'array',
'min' => 1
}
AUTHOR
Nigel Horne, <njh at bandsman.co.uk>
BUGS
Ancestry has removed the archives. The first 18 pages are on Wayback machine, but the rest is lost.
SEE ALSO
-
The Obituary Daily Times
-
Archived Rootsweb data
-
Funeral Notices
-
Recent data
-
Older data
SUPPORT
This module is provided as-is without any warranty.
You can find documentation for this module with the perldoc command.
perldoc Genealogy::Obituary::Lookup
You can also look for information at:
-
MetaCPAN
-
RT: CPAN's request tracker
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Genealogy-Obituary-Lookup
-
CPAN Testers' Matrix
http://matrix.cpantesters.org/?dist=Genealogy-Obituary-Lookup
-
CPAN Testers Dependencies
http://deps.cpantesters.org/?module=Genealogy::Obituary::Lookup
LICENSE AND COPYRIGHT
Copyright 2020-2025 Nigel Horne.
This program is released under the following licence: GPL2
