file spec tweaks for VMS
[p5sagit/p5-mst-13.2.git] / win32 / bin / search.pl
index 5c3d65e..f647b84 100644 (file)
@@ -47,7 +47,12 @@ $version = "950918.5";
 $stripped=0;
 
 &init;
-$rc_file = join('/', $ENV{'HOME'}, ".search");
+if (exists $ENV{'HOME'}) {
+    $rc_file = join('/', $ENV{'HOME'}, ".search");
+}
+else {
+    $rc_file = "";
+}
 
 &check_args;