diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-04 22:39:23 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-04 22:39:23 +0000 |
commit | 9197da933435108f33aace251a1aff744f8b53d3 (patch) | |
tree | 34b06be11b8bc4a8d3028149e890aac13fcfce33 /lib/overload.pm | |
parent | 43882694e1eee1552cb035fae9edef83c202d0f7 (diff) | |
download | perl-9197da933435108f33aace251a1aff744f8b53d3.tar.gz |
Integrate with mainperl.
p4raw-id: //depot/cfgperl@3576
Diffstat (limited to 'lib/overload.pm')
-rw-r--r-- | lib/overload.pm | 2 |
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]"; } |