summaryrefslogtreecommitdiff
path: root/lib/overload.pm
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-04 22:39:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-04 22:39:23 +0000
commit9197da933435108f33aace251a1aff744f8b53d3 (patch)
tree34b06be11b8bc4a8d3028149e890aac13fcfce33 /lib/overload.pm
parent43882694e1eee1552cb035fae9edef83c202d0f7 (diff)
downloadperl-9197da933435108f33aace251a1aff744f8b53d3.tar.gz
Integrate with mainperl.
p4raw-id: //depot/cfgperl@3576
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 bcb56c3334..c46be839c3 100644
--- a/lib/overload.pm
+++ b/lib/overload.pm
@@ -87,7 +87,7 @@ sub AddrRef {
}
sub StrVal {
- (OverloadedStringify($_[0])) ?
+ (OverloadedStringify($_[0]) or ref($_[0]) eq 'Regexp') ?
(AddrRef(shift)) :
"$_[0]";
}