Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDY4d-0006w0-4d for pgsql-committers@arkaria.postgresql.org; Mon, 18 Jul 2022 21:14:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDY4b-0002pY-Vj for pgsql-committers@arkaria.postgresql.org; Mon, 18 Jul 2022 21:14:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDY4b-0002pA-P5 for pgsql-committers@lists.postgresql.org; Mon, 18 Jul 2022 21:14:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDY4Z-0003ys-Iw for pgsql-committers@lists.postgresql.org; Mon, 18 Jul 2022 21:14:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26ILEWYT819626; Mon, 18 Jul 2022 17:14:32 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@lists.postgresql.org, Andrew Dunstan Subject: Re: pgsql: ecpg: Output dir, source dir, stamp file argument for preproc/*. In-reply-to: References: Comments: In-reply-to Andres Freund message dated "Mon, 18 Jul 2022 19:56:18 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <819624.1658178872.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Jul 2022 17:14:32 -0400 Message-ID: <819625.1658178872@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > ecpg: Output dir, source dir, stamp file argument for preproc/*.pl crake says that perlcritic doesn't like this: Jul 18 16:48:25 ./src/interfaces/ecpg/preproc/parse.pl: Bareword file hand= le opened at line 30, column 1. See pages 202,204 of PBP. ([InputOutput:= :ProhibitBarewordFileHandles] Severity: 5) Jul 18 16:48:25 ./src/interfaces/ecpg/preproc/parse.pl: Bareword file hand= le opened at line 31, column 1. See pages 202,204 of PBP. ([InputOutput:= :ProhibitBarewordFileHandles] Severity: 5) That's bitching about open(our $parserfh, '<', $parser) or die "could not open parser file $pars= er"; open(our $outfh, '>', $outfile) or die "could not open output file $outfil= e"; which doesn't look like a bareword to my non-perl-monk eye, but what do I know? Maybe you should be using "my" instead of "our", because I don't see anything else about it that looks different from other places in our code. regards, tom lane