X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcallbot.pl;h=ba9f99f086e5e054f1f32bcfabc46d817a4294a2;hb=refs%2Fheads%2Fnewusers;hp=6d845a215a91263667ef5b05bca1df629bce94ac;hpb=9b16ab623efe48723ba472624cf4020b155f683c;p=spider.git diff --git a/perl/callbot.pl b/perl/callbot.pl index 6d845a21..ba9f99f0 100755 --- a/perl/callbot.pl +++ b/perl/callbot.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # an attempt at producing a general purpose 'bot' for going and getting # things orf the web and presenting them to user in a form they want @@ -10,13 +10,20 @@ # # Copyright (c) 1999 - Dirk Koopman, Tobit Computer Co Ltd # -# $Id$ +# # package main; BEGIN { - unshift @INC, '.'; + umask 002; + + # root of directory tree for this system + $root = "/spider"; + $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'}; + + unshift @INC, "$root/perl"; # this IS the right way round! + unshift @INC, "$root/local"; } use strict;