summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorFrançois Désarménien <desar@club-internet.fr>1998-07-19 14:28:33 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-07-21 04:44:04 +0000
commit3409ec4ce64b7010eb757067ca270d504c3e0146 (patch)
treed8a44926af853cd1036b0aac8e43732fce408422 /t
parentc84d73f1f9f9cc1f8dd8d87123bb87479c2f2754 (diff)
downloadperl-3409ec4ce64b7010eb757067ca270d504c3e0146.tar.gz
add tests to check if context propagation works
Message-ID: <35B1CA51.A606AD27@club-internet.fr> Subject: Re: m//g strange behaviour in 5.004 p4raw-id: //depot/perl@1599
Diffstat (limited to 't')
-rwxr-xr-xt/op/context.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/op/context.t b/t/op/context.t
new file mode 100755
index 0000000000..4625441efa
--- /dev/null
+++ b/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;