X-Git-Url: http://scm.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FQSL.pm;h=6649c7a76f9f30b68c78b876fe1f4dd0fd283e34;hb=8ce3e54056026253e9e4a518b317dbbd8e71bb7a;hp=9ed00f30d1c37ec2049d89d63d662db1fac7dffa;hpb=b9dffeff7239952814342dad19db3a51def6fab7;p=spider.git diff --git a/perl/QSL.pm b/perl/QSL.pm index 9ed00f30..6649c7a7 100644 --- a/perl/QSL.pm +++ b/perl/QSL.pm @@ -18,10 +18,12 @@ use vars qw($qslfn $dbm); $qslfn = 'qsl'; $dbm = undef; +localdata_mv("$qslfn.v1"); + sub init { my $mode = shift; - my $ufn = "$main::root/data/$qslfn.v1"; + my $ufn = localdata("$qslfn.v1"); Prefix::load() unless Prefix::loaded(); @@ -56,7 +58,9 @@ sub new return bless [uc $call, []], $pkg; } -# the format of each entry is [manager, times found, last time] +# called $self->update(comment, time, spotter) +# $self has the callsign as the first argument in an array of array references +# the format of each entry is [manager, times found, last time, last reporter] sub update { return unless $dbm;