Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 133161
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: perlsky [...] gmail.com
Cc:
AdminCc:

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



Subject: [cpan-questions #36650] perltidy -html does not work for pod with the latest version.,
I faced with the following error by -html option. Undefined subroutine &Perl::Tidy::HtmlWriter::pod2html called at /usr/local/share/perl/5.30.0/Perl/Tidy/HtmlWriter.pm line 716. Perl-Tidy-20170521.tar.gz has produced a perfect html document. Please fix this degradation.
Thanks for the report. The error was introduced in a coding change in which a 'require' should have been a 'use'. The needed correction is as follows: Change line 36 of lib/Perl/Tidy/HtmlWriter.pm from: if ( !eval { require Pod::Html; 1 } ) { To be: if ( !eval { use Pod::Html; 1 } ) { This will be fixed in the next version.
On Fri Aug 14 21:12:16 2020, SHANCOCK wrote: Show quoted text
> Thanks for the report. The error was introduced in a coding change in > which a 'require' should have been a 'use'. > The needed correction is as follows: > > Change line 36 of lib/Perl/Tidy/HtmlWriter.pm from: > > if ( !eval { require Pod::Html; 1 } ) { > > To be: > > if ( !eval { use Pod::Html; 1 } ) { > > This will be fixed in the next version.
use happens at compile time, so the eval won't have any impact at all. If the module is not available, the module will fail to compile. I haven't checked the rest of the code to confirm if that is a problem.
Thanks; so a better fix is to change line 716 from pod2html(@args); to Pod::Html::pod2html(@args);
Subject: Re: [rt.cpan.org #133161] [cpan-questions #36650] perltidy -html does not work for pod with the latest version.,
Date: Sat, 15 Aug 2020 14:54:09 +0900
To: bug-Perl-Tidy [...] rt.cpan.org
From: Yutaka Mawake <perlsky [...] gmail.com>
I don’t know how to appreciate your effort for this immediate bug fix. I already verified That the final answer fixes this issue. Thank you very much. 2020年8月15日(土) 11:37 Steve Hancock via RT <bug-Perl-Tidy@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=133161 > > > Thanks; so a better fix is to change line 716 from > > pod2html(@args); > to > Pod::Html::pod2html(@args); >
-- Sent from Gmail Mobile
This is fixed in version 20200822. Thank you for the bug report.