summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-02-10 13:29:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-02-10 13:29:25 +0000
commit6e5513118382197e263ed0513dd9440d50761ffd (patch)
treee8ed0b6ec53677af6e23d52eae2422a22f4c3cc8 /t
parentca52efda54f22f3846895a11e0ba33d987d8ca85 (diff)
downloadperl-6e5513118382197e263ed0513dd9440d50761ffd.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5060
Diffstat (limited to 't')
-rwxr-xr-xt/op/write.t17
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;
+}