X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=f4b5f3cd9e7b55c56acb532797aa631cc4b0ee06;hb=a893c459de8e5d31f7b3dc67d4cda11a389df45b;hp=852a3bda04d9145cb406c799bdc78c3d4b264650;hpb=b29626c537438016f7221c667628d5e49b9f4fce;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 852a3bda..f4b5f3cd 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -238,10 +238,9 @@ sub prepare # remove ssids and /xxx if present on spotter $out[4] =~ s/-\d+$//o; - # remove leading and trailing spaces + # remove leading and trailing spaces from comment field $out[3] = unpad($out[3]); - # add the 'dxcc' country on the end for both spotted and spotter, then the cluster call my @spd = Prefix::cty_data($out[1]); push @out, $spd[0]; @@ -348,6 +347,7 @@ sub search dbg("Spot::search hint='$hint', expr='$expr', spotno=$from-$to, day=$dayfrom-$dayto\n") if isdbg('search'); # build up eval to execute + dbg("Spot::search Spot eval: $expr") if isdbg('searcheval'); $expr =~ s/\$r/\$_[0]/g; my $eval = qq{ sub { return $expr; } }; @@ -355,7 +355,6 @@ sub search my $ecode = eval $eval; return ("Spot search error", $@) if $@; - my $fh; my $now = $fromdate; my $today = Julian::Day->new($main::systime);