limit the no of spots stored for a search
[spider.git] / perl / Spot.pm
index 74b3f77319decf08c9f004a471d7cc34b46161e4..840913d1cd9184e90683e7b70d611f782fd84c7e 100644 (file)
@@ -307,6 +307,7 @@ sub search
                                   my \@s = split /\\^/;
                    $checkfilter;
                    push \@spots, \\\@s;
+                   shift \@spots if \@spots > $to + 2; 
                           }
                           my \$c;
                           my \$ref;