From: Steve Hancock Date: Sat, 15 Aug 2020 01:14:38 +0000 (-0700) Subject: fix for RT #133161, perltidy -html not working on pod X-Git-Tag: 20200822~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=099243941f1bcab96bcd001d63a5d64db21ab076;p=perltidy.git fix for RT #133161, perltidy -html not working on pod --- diff --git a/lib/Perl/Tidy/HtmlWriter.pm b/lib/Perl/Tidy/HtmlWriter.pm index 20c52eda..836f0cab 100644 --- a/lib/Perl/Tidy/HtmlWriter.pm +++ b/lib/Perl/Tidy/HtmlWriter.pm @@ -30,10 +30,10 @@ use vars qw{ #{ eval "use HTML::Entities"; $missing_html_entities = $@; } BEGIN { - if ( !eval { require HTML::Entities; 1 } ) { + if ( !eval { use HTML::Entities; 1 } ) { $missing_html_entities = $@ ? $@ : 1; } - if ( !eval { require Pod::Html; 1 } ) { + if ( !eval { use Pod::Html; 1 } ) { $missing_pod_html = $@ ? $@ : 1; } }