From: Peter Scott Date: Fri, 15 Mar 2002 18:19:21 +0000 (-0800) Subject: Re: dumpvar.pl bug X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a4b996c622ca8a2cd8d468317fb869865ee25b2;p=p5sagit%2Fp5-mst-13.2.git Re: dumpvar.pl bug Message-id: <4.3.2.7.2.20020315153302.00bac420@shell2.webquarry.com> p4raw-id: //depot/perl@15258 --- diff --git a/lib/dumpvar.pl b/lib/dumpvar.pl index 184faa3..2fb1f69 100644 --- a/lib/dumpvar.pl +++ b/lib/dumpvar.pl @@ -237,13 +237,13 @@ sub unwrap { print "$sp-> ",&stringify($$v,1),"\n"; if ($globPrint) { $s += 3; - dumpglob($s, "{$$v}", $$v, 1); + dumpglob($s, "{$$v}", $$v, 1, $m-1); } elsif (defined ($fileno = fileno($v))) { print( (' ' x ($s+3)) . "FileHandle({$$v}) => fileno($fileno)\n" ); } } elsif (ref \$v eq 'GLOB') { if ($globPrint) { - dumpglob($s, "{$v}", $v, 1) if $globPrint; + dumpglob($s, "{$v}", $v, 1, $m-1) if $globPrint; } elsif (defined ($fileno = fileno(\$v))) { print( (' ' x $s) . "FileHandle({$v}) => fileno($fileno)\n" ); } @@ -296,16 +296,16 @@ sub quote { sub dumpglob { return if $DB::signal; - my ($off,$key, $val, $all) = @_; + my ($off,$key, $val, $all, $m) = @_; local(*entry) = $val; my $fileno; if (($key !~ /^_