X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FSpot.pm;h=08520c5b47f1108ec26d33d7195372d089cb0dca;hp=64af363ee3045c718260e83f15a6f58e0a413275;hb=7432cb12ce865030c8b0315a30764e0088a59102;hpb=e5b0e3dee551a224de284a5ba550098256fcb268 diff --git a/perl/Spot.pm b/perl/Spot.pm index 64af363e..08520c5b 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -18,12 +18,13 @@ use Carp; @ISA = qw(Julian); use strict; +use vars qw($fp $maxspots $defaultspots $maxdays $dirprefix); -my $fp; -my $maxspots = 50; # maximum spots to return -my $defaultspots = 10; # normal number of spots to return -my $maxdays = 35; # normal maximum no of days to go back -my $dirprefix = "$main::data/spots"; +$fp = undef; +$maxspots = 50; # maximum spots to return +$defaultspots = 10; # normal number of spots to return +$maxdays = 35; # normal maximum no of days to go back +$dirprefix = "$main::data/spots"; sub prefix {