summaryrefslogtreecommitdiff
path: root/lib/dumpvar.pl
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/dumpvar.pl
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/dumpvar.pl')
-rw-r--r--lib/dumpvar.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dumpvar.pl b/lib/dumpvar.pl
index c72781801b..4a3041a02b 100644
--- a/lib/dumpvar.pl
+++ b/lib/dumpvar.pl
@@ -361,7 +361,9 @@ sub main::dumpvar {
return if $DB::signal;
next if @vars && !grep( matchvar($key, $_), @vars );
if ($usageOnly) {
- globUsage(\$val, $key) unless $package eq 'dumpvar' and $key eq 'stab';
+ globUsage(\$val, $key)
+ if ($package ne 'dumpvar' or $key ne 'stab')
+ and ref(\$val) eq 'GLOB';
} else {
dumpglob(0,$key, $val);
}