Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sf#396, Module docs can not be found more than once. #148

Merged
merged 1 commit into from Sep 17, 2015
Merged

Conversation

d-lamb
Copy link
Member

@d-lamb d-lamb commented Sep 8, 2015

If a user did 'help PDL::IO::Storable' or some other 2-deep module name,
the search for the proper module file from which to display docs
would change the reported location of the docs database (and the documentation head)
in a initialized once-per-pdl-shell variable. Subsequent searches would
be looking for PDL/IO/IO/Storable.pm, PDL/IO/IO/IO/Storable.pm, etc,
which couldn't be found. This was due to how foreach aliases the
loop variable to the input array. Making an explicit copy removes
the aliasing and keeps the variable unchanged.

If a user did 'help PDL::IO::Storable' or some other 2-deep module name,
the search for the proper module file from which to display docs
would change the reported location of the docs database (and the documentation head)
in a initialized once-per-pdl-shell variable.  Subsequent searches would
be looking for PDL/IO/IO/Storable.pm, PDL/IO/IO/IO/Storable.pm, etc,
which couldn't be found.  This was due to how foreach aliases the
loop variable to the input array.  Making an explicit copy removes
the aliasing and keeps the variable unchanged.
d-lamb added a commit that referenced this pull request Sep 17, 2015
Fix sf#396, Module docs can not be found more than once.
@d-lamb d-lamb merged commit b3cddcd into master Sep 17, 2015
@d-lamb d-lamb deleted the sf#396 branch September 17, 2015 19:52
@wchristian wchristian restored the sf#396 branch September 17, 2015 19:55
@wchristian wchristian deleted the sf#396 branch September 21, 2015 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant