projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc6438f
)
Add the debugger script which tests for undefs in the symbol table
author
Duke Leto
<jonathan@leto.net>
Wed, 3 Jun 2009 19:02:50 +0000
(12:02 -0700)
committer
Duke Leto
<jonathan@leto.net>
Wed, 3 Jun 2009 19:02:50 +0000
(12:02 -0700)
lib/perl5db/t/symbol-table-bug
[new file with mode: 0644]
patch
|
blob
diff --git a/lib/perl5db/t/symbol-table-bug
b/lib/perl5db/t/symbol-table-bug
new file mode 100644
(file)
index 0000000..
6b5c0e4
--- /dev/null
+++ b/
lib/perl5db/t/symbol-table-bug
@@ -0,0
+1,11
@@
+#!/usr/bin/perl
+#
+# This code is used by lib/perl5db.t !!!
+#
+
+use strict;
+no strict 'refs';
+my %main = %{*{"main\::"}} ;
+my @undef_symbols = grep { !defined $main{$_} } (keys %main);
+print 'Undefined symbols ', scalar(@undef_symbols) . "\n";
+