From c36ecd7e4a957a55451bde2081060c0564e75ff1 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Mon, 16 Oct 2023 06:36:32 -0700 Subject: [PATCH] put sub process_command_line in a closure to hide its hash --- lib/Perl/Tidy.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index 821d56ff..02b9b607 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -4102,6 +4102,8 @@ q(wbb=% + - * / x != == >= <= =~ !~ < > | & = **= += *= &= <<= &&= -= /= |= >>= } ## end sub generate_options +{ #<<< closure process_command_line + # Memoize process_command_line. Given same @ARGV passed in, return same # values and same @ARGV back. # This patch was supplied by Jonathan Swartz Nov 2012 and significantly speeds @@ -4136,6 +4138,7 @@ sub process_command_line { return _process_command_line(@q); } } ## end sub process_command_line +} ## end closure process_command_line # (note the underscore here) sub _process_command_line { -- 2.39.5