do subname() is deprecated, so this test from perl 1 needs updating.
Nicholas Clark [Tue, 13 Oct 2009 12:56:06 +0000 (13:56 +0100)]
t/comp/decl.t

index a4b898c..5056850 100644 (file)
@@ -11,8 +11,8 @@ ok 5
 
 print "1..7\n";
 
-do one();
-do two();
+one();
+two();
 
 sub two {
     print "ok 2\n";
@@ -26,10 +26,10 @@ if ($x eq $x) {
     sub three {
        print "ok 3\n";
     }
-    do three();
+    three();
 }
 
-do four();
+four();
 $~ = 'one';
 write;
 $~ = 'two';