Skip Menu |

This queue is for tickets about the Pod-Perldoc CPAN distribution.

Report information
The Basics
Id: 12025
Status: resolved
Priority: 0/
Queue: Pod-Perldoc

People
Owner: Nobody in particular
Requestors: RandyS [...] ThePierianSpring.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Options (-L) to show location like -l, even when no pod exists
It would be convenient to have an option to show the location of a module file even if there is no pod in it much like the -m option will show the contents of the file regardless of whether there is any embedded pod or not. Randy.
On Sun Mar 27 10:33:49 2005, guest wrote: Show quoted text
> It would be convenient to have an option to show the location of a > module file even if there is no pod in it much like the -m option > will show the contents of the file regardless of whether there is > any embedded pod or not.
perldoc -m -l Module::Lacking::Pod works just fine. So just spell "-L" as "-l -m" or even "-lm". True, some future version of perldoc might break that hack. I say "we" should just fix -l so it works as expected by fixing line 721 of Pod/Perldoc.pm from: push @found, $_ if $self->opt_m or $self->containspod($_); to: push @found, $_ if $self->opt_m or $self->opt_l or $self->containspod($_); If the module were hosted some place like github, I'd commit the fix myself. :) Tye
I've patched this is https://github.com/briandfoy/Pod-Perldoc as 9891fa5c5fe599ff9bc1bf004ddc97049d5e3295. I've wanted this feature for a long time.
Le 2011-11-14 22:14:40, BDFOY a écrit : Show quoted text
> I've patched this is https://github.com/briandfoy/Pod-Perldoc as > 9891fa5c5fe599ff9bc1bf004ddc97049d5e3295.
Is the patch included in 3.15_14 ? I'm asking this "perldoc -lm perldoc" does not seem to work as written above. In the following test I expect it to return "/home/dolmen/.perl/bin/perldoc". $ which perldoc /home/dolmen/.perl/bin/perldoc $ perldoc -lm perldoc /usr/bin/perldoc $ perldoc -l perldoc /home/dolmen/.perl/lib/perl5/perldoc.pod -- Olivier Mengué - http://perlresume.org/DOLMEN
The latest version contains the patch, but maybe the patch doesn't work. I think there might be something else going on here. Does the -lm work for you with a module that does not have pod (so, not testing on perldoc itself)?
On Thu Dec 29 11:39:51 2011, DOLMEN wrote: Show quoted text
> I'm asking this "perldoc -lm perldoc" does not seem to work as written > above. In the following test I expect it to return > "/home/dolmen/.perl/bin/perldoc". > > $ which perldoc > /home/dolmen/.perl/bin/perldoc > $ perldoc -lm perldoc > /usr/bin/perldoc > $ perldoc -l perldoc > /home/dolmen/.perl/lib/perl5/perldoc.pod
Seems to be related to the way that search paths are added to be checked. It first adds perl -V:scriptdirexp, then @INC, then all of the contents of $ENV{PATH} All I can think of is that the /home/dolmen/.perl/bin/perldoc is using your system perl and not the /home/dolmen/.perl/bin/perl one, so /usr/bin is being prepended to the start of the search. If you do PERLDEBUG=4 perldoc -lm perldoc you should be able to see the search path get built. Thanks.
On Fri Jan 06 12:51:48 2012, mallen wrote: Show quoted text
> On Thu Dec 29 11:39:51 2011, DOLMEN wrote:
> > I'm asking this "perldoc -lm perldoc" does not seem to work as
> written
> > above. In the following test I expect it to return > > "/home/dolmen/.perl/bin/perldoc". > > > > $ which perldoc > > /home/dolmen/.perl/bin/perldoc > > $ perldoc -lm perldoc > > /usr/bin/perldoc > > $ perldoc -l perldoc > > /home/dolmen/.perl/lib/perl5/perldoc.pod
> > Seems to be related to the way that search paths are added to be > checked. It first adds > > perl -V:scriptdirexp, then @INC, then all of the contents of > $ENV{PATH} > > All I can think of is that the /home/dolmen/.perl/bin/perldoc is using > your system perl and not > the /home/dolmen/.perl/bin/perl one, so /usr/bin is being prepended to > the start of the > search. If you do PERLDEBUG=4 perldoc -lm perldoc you should be able > to see the search path > get built. > > Thanks.
I'm curious if there's been any different results since I released 3.17 last week. Thanks.