# Things entered into the list are always upper
# cased.
#
-# The files that are created live in /spider/data
+# The files that are created live in /spider/local_data (was data)
#
# Dunno why I didn't do this earlier but heyho..
#
# Copyright (c) 2001 Dirk Koopman G1TLH
#
-# $Id$
+#
#
package DXHash;
use strict;
-use vars qw($VERSION $BRANCH);
-$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
-$main::build += $VERSION;
-$main::branch += $BRANCH;
-
sub new
{
my ($pkg, $name) = @_;
- my $s = readfilestr($main::data, $name);
+
+ # move existing file
+ localdata_mv($name);
+ my $s = readfilestr($main::local_data, $name);
my $self = undef;
$self = eval $s if $s;
dbg("error in reading $name in DXHash $@") if $@;
sub put
{
my $self = shift;
- writefilestr($main::data, $self->{name}, undef, $self);
+ writefilestr($main::local_data, $self->{name}, undef, $self);
}
sub add