Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.15_15
Fixed in: (no value)



Subject: unknown perldoc -f arg now prints trace location
With the perldoc 3.15_04 that ships with 5.14.2: ~$ perldoc -f xyzzy No documentation for perl function `xyzzy' found With perldoc 3.15_15 (also installed on 5.14.2): ~$ perldoc -f xyzzy No documentation for perl function `xyzzy' found at /Users/rjbs/.perlbrew/libs/14.2@std/bin/perldoc line 9 The "at .... line ..." message (and probably the preceding blank) should be suppressed. -- rjbs
On Tue Feb 14 15:29:01 2012, RJBS wrote: Show quoted text
> With the perldoc 3.15_04 that ships with 5.14.2: > > ~$ perldoc -f xyzzy > No documentation for perl function `xyzzy' found > > With perldoc 3.15_15 (also installed on 5.14.2): > > ~$ perldoc -f xyzzy > No documentation for perl function `xyzzy' found > > at /Users/rjbs/.perlbrew/libs/14.2@std/bin/perldoc line 9 > > The "at .... line ..." message (and probably the preceding blank) > should be suppressed.
That's because $self->warn() uses Carp::carp and $self->die() uses Carp::croak I've replaced $self->die() with CORE::die() on certain failure messages like -f which eliminates the space and line number message.
I believe this has been resolved for -f -q and -v flags. There are still times when the line number messages will show up (such as when open fails and so forth)