summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-14 14:19:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-14 14:19:46 +0000
commit48de12d940c558762a4819fcf31deba3b8cb6fea (patch)
treeb08321602800de6c5ee48a8ad6292882914f289d /t
parentdbb1b5d432956ad6dfbabf1a0c1acc561bff49f0 (diff)
downloadperl-48de12d940c558762a4819fcf31deba3b8cb6fea.tar.gz
Fix bug #39037: rcatline doesn't stringify references
p4raw-id: //depot/perl@29273
Diffstat (limited to 't')
-rw-r--r--t/op/readline.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/op/readline.t b/t/op/readline.t
index 6dfe695bb5..ffde6f13bf 100644
--- a/t/op/readline.t
+++ b/t/op/readline.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl';
}
-plan tests => 14;
+plan tests => 15;
eval { for (\2) { $_ = <FH> } };
like($@, 'Modification of a read-only value attempted', '[perl #19566]');
@@ -83,8 +83,13 @@ fresh_perl_is('BEGIN{<>}', '',
{ switches => ['-w'], stdin => '', stderr => 1 },
'No ARGVOUT used only once warning');
+my $obj = bless [];
+$obj .= <DATA>;
+like($obj, qr/main=ARRAY.*world/, 'rcatline and refs');
+
__DATA__
moo
moo
rules
rules
+world