summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/op/context.t
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/t/op/context.t')
-rwxr-xr-xcontrib/perl5/t/op/context.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/perl5/t/op/context.t b/contrib/perl5/t/op/context.t
new file mode 100755
index 0000000..4625441
--- /dev/null
+++ b/contrib/perl5/t/op/context.t
@@ -0,0 +1,18 @@
+#!./perl
+
+$n=0;
+
+print "1..3\n";
+
+sub foo {
+ $a='abcd';
+
+ $a=~/(.)/g;
+
+ $1 eq 'a' or print 'not ';
+ print "ok ",++$n,"\n";
+}
+
+$a=foo;
+@a=foo;
+foo;
OpenPOWER on IntegriCloud