summaryrefslogtreecommitdiff
path: root/Echolot/Globals.pm
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2002-07-16 00:54:12 +0000
committerPeter Palfrader <peter@palfrader.org>2002-07-16 00:54:12 +0000
commit82eecd04982dcc9371801264b05acb8ab67bd73e (patch)
treea2e5e729560d83fb9e18423d8b0f9649c270d1e7 /Echolot/Globals.pm
parent1bbc600d22135a8ff4eda863c64afedb00cb3c9a (diff)
Have echolot version in HTML output
Diffstat (limited to 'Echolot/Globals.pm')
-rw-r--r--Echolot/Globals.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Echolot/Globals.pm b/Echolot/Globals.pm
index bd374da..0a1dabb 100644
--- a/Echolot/Globals.pm
+++ b/Echolot/Globals.pm
@@ -1,7 +1,7 @@
package Echolot::Globals;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: Globals.pm,v 1.2 2002/06/20 04:27:37 weasel Exp $
+# $Id: Globals.pm,v 1.3 2002/07/16 00:53:33 weasel Exp $
#
=pod
@@ -20,12 +20,15 @@ use Carp;
my $GLOBALS;
-sub init {
+sub init(%) {
+ my (%args) = @_;
+
my $hostname = `hostname`;
$hostname =~ /^([a-zA-Z0-9_-]*)$/;
$hostname = $1 || 'unknown';
$GLOBALS->{'hostname'} = $hostname;
$GLOBALS->{'internalcounter'} = 1;
+ $GLOBALS->{'version'} = $args{'version'};
};
sub initStorage {