diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-10 13:29:25 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-10 13:29:25 +0000 |
commit | 6e5513118382197e263ed0513dd9440d50761ffd (patch) | |
tree | e8ed0b6ec53677af6e23d52eae2422a22f4c3cc8 /t | |
parent | ca52efda54f22f3846895a11e0ba33d987d8ca85 (diff) | |
download | perl-6e5513118382197e263ed0513dd9440d50761ffd.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5060
Diffstat (limited to 't')
-rwxr-xr-x | t/op/write.t | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/t/op/write.t b/t/op/write.t index 9918b2f57f..87d50429f4 100755 --- a/t/op/write.t +++ b/t/op/write.t @@ -1,8 +1,6 @@ #!./perl -# $RCSfile: write.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:38 $ - -print "1..6\n"; +print "1..8\n"; my $CAT = ($^O eq 'MSWin32') ? 'type' : 'cat'; @@ -190,3 +188,16 @@ if (`$CAT Op_write.tmp` eq $right) else { print "not ok 6\n"; } +# test lexicals and globals +{ + my $this = "ok"; + our $that = 7; + format LEX = +@<<@| +$this,$that +. + open(LEX, ">&STDOUT") or die; + write LEX; + $that = 8; + write LEX; +} |