summaryrefslogtreecommitdiff
path: root/lib/overload.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-11-03 11:54:28 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-11-03 11:54:28 +0000
commit76c43448ac432c021de5e478d6210fa84dcac466 (patch)
tree51866b83a8ecb78c4673b9db33795313f0850cd1 /lib/overload.pm
parent546cd220972dafe91724980b525f77bf080c60b2 (diff)
downloadperl-76c43448ac432c021de5e478d6210fa84dcac466.tar.gz
Mostly revert change #23347 (keep the test suite, fixed),
having decided that it wasn't a correct fix for bug #31793. p4raw-link: @23347 on //depot/perl: d411a6a9eb5df09116806ed1c441d30d37e8d5e8 p4raw-id: //depot/perl@23469
Diffstat (limited to 'lib/overload.pm')
-rw-r--r--lib/overload.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/overload.pm b/lib/overload.pm
index 8c0b899495..237856f7ff 100644
--- a/lib/overload.pm
+++ b/lib/overload.pm
@@ -94,7 +94,7 @@ sub AddrRef {
}
sub StrVal {
- (ref $_[0] && Overloaded($_[0]) or ref($_[0]) eq 'Regexp') ?
+ (ref $_[0] && OverloadedStringify($_[0]) or ref($_[0]) eq 'Regexp') ?
(AddrRef(shift)) :
"$_[0]";
}