X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCarp%2FHeavy.pm;h=a3d951b08c0ab6a62fc934d25478f38b0f0aadd9;hb=0064a8a9866779dceb087452b9bfaa733c51adce;hp=dac9c751abefc85bb47b7fa780ade82e1865360f;hpb=b75c8c73cd7f3c92a16e03fb046f4e2a99363bc7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Carp/Heavy.pm b/lib/Carp/Heavy.pm index dac9c75..a3d951b 100644 --- a/lib/Carp/Heavy.pm +++ b/lib/Carp/Heavy.pm @@ -1,6 +1,12 @@ # Carp::Heavy uses some variables in common with Carp. package Carp; +=head1 NAME + +Carp heavy machinery - no user serviceable parts inside + +=cut + # use strict; # not yet # On one line so MakeMaker will see it. @@ -42,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);