diff options
author | François Désarménien <desar@club-internet.fr> | 1998-07-19 14:28:33 +0200 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-21 04:44:04 +0000 |
commit | 3409ec4ce64b7010eb757067ca270d504c3e0146 (patch) | |
tree | d8a44926af853cd1036b0aac8e43732fce408422 /t | |
parent | c84d73f1f9f9cc1f8dd8d87123bb87479c2f2754 (diff) | |
download | perl-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-x | t/op/context.t | 18 |
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; |