projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add great_circle_direction().
[p5sagit/p5-mst-13.2.git]
/
lib
/
Carp
/
Heavy.pm
diff --git
a/lib/Carp/Heavy.pm
b/lib/Carp/Heavy.pm
index
b551560
..
a3d951b
100644
(file)
--- a/
lib/Carp/Heavy.pm
+++ b/
lib/Carp/Heavy.pm
@@
-48,7
+48,7
@@
sub format_arg {
$arg = 'undef';
}
elsif (ref($arg)) {
- $arg .= ''; # Make it a string;
+ $arg = defined($overload::VERSION) ? overload::StrVal($arg) : "$arg";
}
$arg =~ s/'/\\'/g;
$arg = str_len_trim($arg, $MaxLenArg);