This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH} typo fix in Carp/Heavy.pm
authorRobert Spier <rspier@pobox.com>
Thu, 20 Dec 2001 08:10:00 +0000 (00:10 -0800)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 20 Dec 2001 15:18:25 +0000 (15:18 +0000)
Message-ID: <15394.3416.693353.107334@rls.cx>

p4raw-id: //depot/perl@13820

lib/Carp/Heavy.pm

index 5de3972..cf10892 100644 (file)
@@ -12,7 +12,7 @@ Carp heavy machinery - no user serviceable parts inside
 # On one line so MakeMaker will see it.
 use Carp;  our $VERSION = $Carp::VERSION;
 
-our ($CarpLevel, $MaxArgNums, $MaxEvalLen, $MaxLenArg, $Verbose);
+our ($CarpLevel, $MaxArgNums, $MaxEvalLen, $MaxArgLen, $Verbose);
 
 sub caller_info {
   my $i = shift(@_) + 1;
@@ -50,7 +50,7 @@ sub format_arg {
       $arg = defined($overload::VERSION) ? overload::StrVal($arg) : "$arg";
   }
   $arg =~ s/'/\\'/g;
-  $arg = str_len_trim($arg, $MaxLenArg);
+  $arg = str_len_trim($arg, $MaxArgLen);
   
   # Quote it?
   $arg = "'$arg'" unless $arg =~ /^-?[\d.]+\z/;