pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@lists.postgresql.org, Andrew Dunstan <andrew@dunslane.net>
Subject: Re: pgsql: ecpg: Output dir, source dir, stamp file argument for preproc/*.
Date: Mon, 18 Jul 2022 17:14:32 -0400
Message-ID: <819625.1658178872@sss.pgh.pa.us> (raw)
In-Reply-To: <E1oDWqn-000ADD-Oh@gemulon.postgresql.org>
References: <E1oDWqn-000ADD-Oh@gemulon.postgresql.org>

Andres Freund <andres@anarazel.de> 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 handle 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 handle 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 $parser";
open(our $outfh, '>', $outfile) or die "could not open output file $outfile";

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





view thread (11+ messages)  latest in thread

Message-ID: <819625.1658178872@sss.pgh.pa.us>
Permalink:  ../819625.1658178872@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/819625.1658178872@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, andrew@dunslane.net
  Subject: Re: pgsql: ecpg: Output dir, source dir, stamp file argument for preproc/*.
  In-Reply-To: <819625.1658178872@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox