From: Steve Hancock Date: Mon, 16 Oct 2023 13:36:32 +0000 (-0700) Subject: put sub process_command_line in a closure to hide its hash X-Git-Tag: 20230912.04~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c36ecd7e4a957a55451bde2081060c0564e75ff1;p=perltidy.git put sub process_command_line in a closure to hide its hash --- 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 {