From: Steve Hancock <perltidy@users.sourceforge.net> Date: Sat, 28 Dec 2024 04:54:01 +0000 (-0800) Subject: add missing use File::Temp X-Git-Tag: 20240903.09~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f56ab33d2670ab5bdda63d964ca9d620f4fb4e31;p=perltidy.git add missing use File::Temp --- 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{ };