Re: use strict in all Perl programs

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: use strict in all Perl programs
Date: 2016-12-31 06:34:38
Message-ID: CAB7nPqRdCyvXzWJ2=RA9p8J=K6zVdLwfZENyk=nbO9ZzgGTD3w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Dec 31, 2016 at 3:07 PM, Peter Eisentraut
<peter(dot)eisentraut(at)2ndquadrant(dot)com> wrote:
> Here is a patch to add 'use strict' to all Perl programs (that I could
> find), or move it to the right place where it was already there. I
> think that is a pretty standard thing to do nowadays.
>
> I tried testing the changes in pgcheckdefines, but it just spits out
> nonsense before and after.

What about adding as well "use warnings"? That's standard in all the TAP tests.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2016-12-31 07:09:06 Re: proposal: session server side variables
Previous Message Peter Eisentraut 2016-12-31 06:27:39 Re: sequence data type