From f56ab33d2670ab5bdda63d964ca9d620f4fb4e31 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Fri, 27 Dec 2024 20:54:01 -0800 Subject: [PATCH] add missing use File::Temp --- CHANGES.md | 3 +++ lib/Perl/Tidy/HtmlWriter.pm | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 264de1f1..d540d051 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -103,6 +103,9 @@ $st_blocks ); + - Added missing 'use File::Temp' for -html option. This was causing the + message: "Undefined subroutine &File::Temp::tempfile called at ..." + ## 2024 09 03 - Add partial support for Syntax::Operator::In and Syntax::Keyword::Match diff --git a/lib/Perl/Tidy/HtmlWriter.pm b/lib/Perl/Tidy/HtmlWriter.pm index 9b3fd092..a2ec1386 100644 --- a/lib/Perl/Tidy/HtmlWriter.pm +++ b/lib/Perl/Tidy/HtmlWriter.pm @@ -12,6 +12,7 @@ our $VERSION = '20240903.08'; use Carp; use English qw( -no_match_vars ); use File::Basename; +use File::Temp qw(); use constant EMPTY_STRING => q{}; use constant SPACE => q{ }; -- 2.39.5