projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
39aa830
)
test that localised tieing of a hash or array remains local
Dave Mitchell [Sun, 1 Jul 2007 12:30:50 +0000 (12:30 +0000)]
(tests for change #31505)
p4raw-link: @31505 on //depot/perl:
c4a7531db1b7667c9d43fd3494f5bbf4901ff149
p4raw-id: //depot/perl@31511
t/op/tie.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/tie.t
b/t/op/tie.t
index
a8d79fb
..
5ea2cda
100755
(executable)
--- a/
t/op/tie.t
+++ b/
t/op/tie.t
@@
-622,3
+622,19
@@
foreach my $var ($VAR) {
}
EXPECT
yes
+########
+sub TIEARRAY { bless [], 'main' }
+{
+ local @a;
+ tie @a, 'main';
+}
+print "tied\n" if tied @a;
+EXPECT
+########
+sub TIEHASH { bless [], 'main' }
+{
+ local %h;
+ tie %h, 'main';
+}
+print "tied\n" if tied %h;
+EXPECT