X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=d663c9bd3e973a82e1a9b55637ab96255c4d1a49;hb=46960c1b50c3937c073a65422313925f78007a2b;hp=2e4afe023c2c72ba6b1fa4fa85df875986213c2d;hpb=7bba989c01312790704a42153bbd87bcbb3f084e;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 2e4afe02..d663c9bd 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -8,7 +8,7 @@ package Spot; -use FileHandle; +use IO::File; use DXVars; use DXDebug; use DXUtil; @@ -29,7 +29,7 @@ $dirprefix = "spots"; sub init { mkdir "$dirprefix", 0777 if !-e "$dirprefix"; - $fp = DXLog::new($dirprefix, "dat", 'd') + $fp = DXLog::new($dirprefix, "dat", 'd'); } sub prefix @@ -105,7 +105,7 @@ sub search my $ref; my $i; my $count; - my @today = Julian::unixtoj(time); + my @today = Julian::unixtoj(time()); my @fromdate; my @todate;