Update IPC::Cmd to 0.42
[p5sagit/p5-mst-13.2.git] / lib / Switch / t / nested.t
index 87451ed..e7e520a 100755 (executable)
@@ -1,8 +1,8 @@
-#! /usr/local/bin/perl -w
-
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
+    if ($ENV{PERL_CORE}) {
+        chdir('t') if -d 't';
+        @INC = qw(../lib);
+    }
 }
 
 use Switch;