This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bcf54a
)
better check for overload::StrVal
author
Zefram
<zefram@fysh.org>
Sun, 18 Aug 2013 13:24:30 +0000
(14:24 +0100)
committer
Zefram
<zefram@fysh.org>
Sun, 18 Aug 2013 13:24:30 +0000
(14:24 +0100)
The overloading logic in Carp got confused on perl 5.6 by the overload
module not setting $VERSION. As the overload-is-loaded check controls
the use of overload::StrVal(), check for that sub being defined rather
than checking $VERSION.
dist/Carp/lib/Carp.pm
patch
|
blob
|
blame
|
history
diff --git
a/dist/Carp/lib/Carp.pm
b/dist/Carp/lib/Carp.pm
index
5601c23
..
4365808
100644
(file)
--- a/
dist/Carp/lib/Carp.pm
+++ b/
dist/Carp/lib/Carp.pm
@@
-213,7
+213,7
@@
sub format_arg {
{
1;
}
- elsif (defined(
$overload::VERSION
))
+ elsif (defined(
&overload::StrVal
))
{
if ($in_recurse ||
!do {