X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXHash.pm;h=cf9f05211c202ff10cd42798f22542822921dd36;hb=ceb2daf21a03249decadc86f4b90711fe8a53b0e;hp=36f882eba0c61180b5e4fb72acd80b280b2618e6;hpb=7b9256ceade8b18b48f848c9ac659c2de7322b0b;p=spider.git diff --git a/perl/DXHash.pm b/perl/DXHash.pm index 36f882eb..cf9f0521 100644 --- a/perl/DXHash.pm +++ b/perl/DXHash.pm @@ -8,13 +8,13 @@ # 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; @@ -28,7 +28,10 @@ use strict; 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 $@; @@ -39,7 +42,7 @@ sub new sub put { my $self = shift; - writefilestr($main::data, $self->{name}, undef, $self); + writefilestr($main::local_data, $self->{name}, undef, $self); } sub add