limit the no of spots stored for a search
[spider.git] / perl / Spot.pm
index 2d04f411e14973c47de9712e53a032e516d79809..0761f07d0522f865ad10d4c950df4d12033f7f02 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;