Skip to content

Commit 18c56b3

Browse files
committed
fix doc-parser to read correct hash - #542
1 parent 8234662 commit 18c56b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/PDL/Doc.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ sub scan {
682682
my $n = 0;
683683
$_->{File} = $file2, $n++ for values %{ $parser->{SYMHASH} };
684684
for my $key (sort keys %{ $parser->{SYMHASH} }) {
685-
my $val = $hash->{$key};
685+
my $val = $parser->{SYMHASH}{$key};
686686
#set up the 3-layer hash/database structure: $hash->{funcname}->{PDL::SomeModule} = $val
687687
if (defined($val->{Module})) {
688688
$hash->{$key}{$val->{Module}} = $val;
@@ -745,6 +745,7 @@ sub scantree {
745745
print "\t$n functions\n";
746746
};
747747
File::Find::find({
748+
no_chdir => 1,
748749
wanted => $sub,
749750
preprocess => sub { sort @_ }
750751
}, $dir);

0 commit comments

Comments
 (0)