summaryrefslogtreecommitdiff
path: root/index.cgi
blob: 8441c3e9879a2b3151bfc0888b1d67857e347315 (plain)
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
#!/usr/bin/perl

# Xerl (c) 2005-2011, 2013-2015, 2017-2018 by Paul Buetow
#
# 	E-Mail: xerl@dev.buetow.org 	WWW: http://xerl.buetow.org
#
# This is free software, you may use it and distribute it under the same
# terms as Perl itself.

use strict;
use warnings;

use v5.14.0;
use lib qw(.);

use Xerl;

use Socket;
use Sys::Hostname;

my $host = hostname();
my $config =
  -e "xerldev.conf"
  ? "xerldev.conf"
  : ( -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' );

my $xerl = Xerl->new( config => $config );
$xerl->run();