Re: Apparent bugs in various things
Chip Salzenberg (chip@atlantic.net)
Fri, 21 Mar 1997 00:14:51 -0500 (EST)
According to Ilya Zakharevich:
> > Attempt to use reference as lvalue in substr at /usr/lib/perl/Carp.pm line 72, <DATA> chunk 161.
I think this patch should fix that particular problem:
Index: lib/Carp.pm
***************
*** 69,72 ****
--- 69,73 ----
for (@a) {
$_ = "undef", next unless defined $_;
+ $_ .= '' if ref $_;
s/'/\\'/g;
substr($_,$MaxArgLen) = '...' if $MaxArgLen and $MaxArgLen < length;
--
Chip Salzenberg - a.k.a. - <chip@atlantic.net>
"Vacation time. Families travel east, west, north, or south."
"Some just burrow straight down." -- Crow T. Robot // MST3K