added E4 (palestine) to prefix data
[spider.git] / perl / create_prefix.pl
index ae11caa248fb2da3905bea0d712c185205cd28a9..d21f30f7eb0f585505c441ec46882dec85bd0894 100755 (executable)
@@ -6,6 +6,18 @@
 # $Id$
 #
 
+require 5.004;
+
+# search local then perl directories
+BEGIN {
+       # 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 DXVars;
 use Data::Dumper;