Genealogy::Obituary::Lookup

Appveyor status CPAN GitHub Workflow Status Kritika Analysis Status Kwalitee Travis Status Tweet

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:

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:

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

Database::Abstraction

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:

LICENSE AND COPYRIGHT

Copyright 2020-2025 Nigel Horne.

This program is released under the following licence: GPL2