summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-03-10 11:09:13 +0100
committerPaul Buetow <paul@buetow.org>2013-03-10 11:09:13 +0100
commit949fd3d82f9e4afd925ad2168de358b6499d889b (patch)
treebfc07215996479a32aac4936fba01ac230aee922 /index.pl
parent025e15b2ba7f54f87cf409fd7c3dd77746c72858 (diff)
parent469d0a4485d65bbea6161782e78781333eb28d8b (diff)
quick commit
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/index.pl b/index.pl
new file mode 100755
index 0000000..985af29
--- /dev/null
+++ b/index.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Xerl;
+
+use Socket;
+use Sys::Hostname;
+
+my $host = hostname();
+my $config = -e "config-$host.txt" ? "config-$host.txt" : 'config.txt';
+
+my Xerl $xerl = Xerl->new( config => $config );
+$xerl->run();
+