Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 77032
Status: rejected
Priority: 0/
Queue: Pod-Simple

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

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



Subject: Pod::Simple::parse_file() does not output_fh
Date: Mon, 7 May 2012 10:21:12 +0200
To: bug-pod-simple [...] rt.cpan.org
From: Petr Pisar <ppisar [...] redhat.com>
Hello, when using Pod::Man::parse_file() I get an error about using string as symbol reference: $ perl -MPod::Man -e 'Pod::Man->new->parse_file(q{/usr/share/perl5/Pod/Man.pm});' Can't use string ("") as a symbol ref while "strict refs" in use at /usr/share/perl5/Pod/Man.pm line 730. Which comes from Pod::Man: # Output some text, without any additional changes. sub output { my ($self, @text) = @_; [...] → print { $$self{output_fh} } @text; [...] } The problem is $self{output_fh} does not exist at the moment. Pod::Man documentation says the default output is *STDOUT because it's inherited so from Pod::Simple: The standard Pod::Simple method parse_file() takes one argument naming the POD file to read from. By default, the output is sent to "STDOUT", but this can be changed with the output_fd() method. Reading Pod::Simple code I can see parse_from_file() sets output_fh, but parse_file() does not. My question is: Who's responsible for setting output_fh? Is it Pod::Simple or sub-classed formater like Pod::Man? This bug exhibits with any perl release I tested (5.10.1, 5.14.2, blead). -- Petr
Download (untitled)
application/pgp-signature 230b

Message body not shown because it is not plain text.

On 2012-05-07 04:21:27, ppisar wrote: Show quoted text
> My question is: Who's responsible for setting output_fh? Is it > Pod::Simple or > sub-classed formater like Pod::Man? > > This bug exhibits with any perl release I tested (5.10.1, 5.14.2, > blead).
No idea. I'd start with the Pod::Man guys, see what they expect to happen. David
Subject: Re: [rt.cpan.org #77032] Pod::Simple::parse_file() does not output_fh
Date: Wed, 30 May 2012 10:32:23 +0200
To: David Wheeler via RT <bug-Pod-Simple [...] rt.cpan.org>
From: Petr Pisar <ppisar [...] redhat.com>
On Tue, May 29, 2012 at 02:42:10PM -0400, David Wheeler via RT wrote: Show quoted text
> On 2012-05-07 04:21:27, ppisar wrote:
> > My question is: Who's responsible for setting output_fh? Is it > > Pod::Simple or sub-classed formater like Pod::Man? > > > > This bug exhibits with any perl release I tested (5.10.1, 5.14.2, > > blead).
> > No idea. I'd start with the Pod::Man guys, see what they expect to happen. >
Ok. I raised the qestion to podlators maintainer <https://rt.cpan.org/Public/Bug/Display.html?id=77530>. -- Petr
Download (untitled)
application/pgp-signature 230b

Message body not shown because it is not plain text.

Looks like https://rt.cpan.org/Public/Bug/Display.html?id=77530 is taking care of the issue.