1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/perl -w
# Copyright 2001-2019, Paul Johnson (paul@pjcj.net)
# This software is free. It is licensed under the same terms as Perl itself.
# The latest version of this software should be available from my homepage:
# http://www.pjcj.net
# Version 1.22 - 15th November 2019
use strict;
require 5.005;
use lib "/var/www/Gedcom/lib";
use CGI qw(:cgi :html);
use Gedcom::CGI 1.22;
my $op = param("op");
eval { Gedcom::CGI->$op() };
if (my $error = $@) {
print header,
start_html,
h1("Gedcom error"),
"Unable to run $op.",
pre($error),
end_html;
}
__END__
=head1 NAME
main.cgi
Version 1.22 - 15th November 2019
=head1 SYNOPSIS
=head1 DESCRIPTION
=cut
|