]> git.donarmstrong.com Git - perltidy.git/commitdiff
fix for RT #133161, perltidy -html not working on pod
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 15 Aug 2020 01:14:38 +0000 (18:14 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 15 Aug 2020 01:14:38 +0000 (18:14 -0700)
lib/Perl/Tidy/HtmlWriter.pm

index 20c52edadda8b4bd779b1421bcd7e754e2781b26..836f0cab043012c35e55096c35853721c10e43c6 100644 (file)
@@ -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;
     }
 }