X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=1e7f4f16f1cc6fc0b31bd3aa153d77d45ddb40f3;hb=8ce11d49e52f2ae6ed3c0ddf2a54b2941544acc3;hp=1fc293f209ace278768b9aadf5d88c86c89fa951;hpb=dbeecf2c5b0e87c38b52edf992d41b122a676fcd;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index 1fc293f2..1e7f4f16 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -13,6 +13,7 @@ package main; require 5.10.1; + use warnings; use vars qw($root $is_win $systime $lockfn @inqueue $starttime $lockfn @outstanding_connects @@ -33,7 +34,8 @@ $user_interval = 11*60; # the interval between unsolicited prompts if no traff # make sure that modules are searched in the order local then perl BEGIN { umask 002; - + $SIG{'__WARN__'} = sub { warn $_[0] if $DOWARN }; + # take into account any local::lib that might be present eval { require local::lib; @@ -87,14 +89,13 @@ BEGIN { use DXVars; use SysVar; -use strict; - # order here is important - DXDebug snarfs Carp et al so that Mojo errors go into the debug log use DXDebug; - use Mojolicious 7.26; use Mojo::IOLoop; +$DOWARN = 1; + use Msg; use IntMsg; use Internet; @@ -157,6 +158,8 @@ use Web; use vars qw($version $build $gitversion $gitbranch); +use strict; + use Local;