summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-06-14 09:44:49 +0200
committerNicholas Clark <nick@ccl4.org>2010-06-14 09:44:49 +0200
commit086d291379a28ceb3cd7cc6416747be8c426476b (patch)
tree65cd76e65283592688e76e7f00528c3407c3ecff /t
parentf4adce6b773b2b6071e0d1627f4dce6ec0c3caa7 (diff)
downloadperl-086d291379a28ceb3cd7cc6416747be8c426476b.tar.gz
Note why pp_tie can't use call_method() for a package name.
Plus a test that would fail if it did.
Diffstat (limited to 't')
-rw-r--r--t/op/tie.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/op/tie.t b/t/op/tie.t
index 38c5cff877..5628694b8f 100644
--- a/t/op/tie.t
+++ b/t/op/tie.t
@@ -929,3 +929,11 @@ print "fetch=$fetch\ncalled=$called\n";
EXPECT
fetch=2
called=2
+########
+# tie mustn't attempt to call methods on bareword filehandles.
+sub IO::File::TIEARRAY {
+ die "Did not want to invoke IO::File::TIEARRAY";
+}
+fileno FOO; tie @a, "FOO"
+EXPECT
+Can't locate object method "TIEARRAY" via package "FOO" at - line 5.