summaryrefslogtreecommitdiff
path: root/lib/Dumpvalue.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-19 06:30:11 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-19 06:30:11 +0000
commit4c82ae22ce2b9a6d9891a286b3b4d41b58d56d4e (patch)
tree901447ac7c322577d3fb63a0995ad6f9829ac421 /lib/Dumpvalue.pm
parentcec88af6de547f81fd0f3124a07cfda36f778c89 (diff)
downloadperl-4c82ae22ce2b9a6d9891a286b3b4d41b58d56d4e.tar.gz
default warnLevel and dieLevel to 0 in debugger (from Tom
Christiansen); make dumpvar.pl safe against non-glob entries in stashes p4raw-id: //depot/perl@5818
Diffstat (limited to 'lib/Dumpvalue.pm')
-rw-r--r--lib/Dumpvalue.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Dumpvalue.pm b/lib/Dumpvalue.pm
index 94b6aa6e78..5d3a9dafc2 100644
--- a/lib/Dumpvalue.pm
+++ b/lib/Dumpvalue.pm
@@ -404,7 +404,8 @@ sub dumpvars {
next if @vars && !grep( matchvar($key, $_), @vars );
if ($self->{usageOnly}) {
$self->globUsage(\$val, $key)
- unless $package eq 'Dumpvalue' and $key eq 'stab';
+ if ($package ne 'Dumpvalue' or $key ne 'stab')
+ and ref(\$val) eq 'GLOB';
} else {
$self->dumpglob($package, 0,$key, $val);
}