projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix occasional op/time.t failure
[p5sagit/p5-mst-13.2.git]
/
t
/
op
/
tie.t
diff --git
a/t/op/tie.t
b/t/op/tie.t
index
1d676ea
..
a8d79fb
100755
(executable)
--- a/
t/op/tie.t
+++ b/
t/op/tie.t
@@
-612,3
+612,13
@@
print scalar keys %h, "\n";
EXPECT
0
0
+########
+# Bug 37731
+sub foo::TIESCALAR { bless {value => $_[1]}, $_[0] }
+sub foo::FETCH { $_[0]->{value} }
+tie my $VAR, 'foo', '42';
+foreach my $var ($VAR) {
+ print +($var eq $VAR) ? "yes\n" : "no\n";
+}
+EXPECT
+yes