summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/re/overload.t17
1 files changed, 5 insertions, 12 deletions
diff --git a/t/re/overload.t b/t/re/overload.t
index f89069bb9e..4e99bd3ec6 100644
--- a/t/re/overload.t
+++ b/t/re/overload.t
@@ -1,19 +1,13 @@
-#!./perl
-
-use strict;
-use warnings;
-no warnings 'syntax';
+#!./perl -w
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require './test.pl';
}
-sub is;
-sub plan;
-
-require './test.pl';
-plan tests => 3;
+use strict;
+no warnings 'syntax';
{
# Bug #77084 points out a corruption problem when scalar //g is used
@@ -39,5 +33,4 @@ plan tests => 3;
is $1, $TAG, "void context //g against overloaded object";
}
-
-__END__
+done_testing();