Update IPC::Cmd to 0.42
[p5sagit/p5-mst-13.2.git] / lib / Switch / t / nested.t
index b4aceac..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;
@@ -14,6 +14,15 @@ for my $count (1..3, 'four')
 {
        switch ([$count])
        {
+
+=pod
+
+=head1 Test
+
+We also test if Switch is POD-friendly here
+
+=cut
+
                case qr/\d/ {
                                switch ($count) {
                                        case 1     { print "ok 1\n" }
@@ -23,3 +32,11 @@ for my $count (1..3, 'four')
                case 'four' { print "ok 4\n" }
        }
 }
+
+__END__
+
+=head1 Another test
+
+Still friendly???
+
+=cut